|
What you can do is modify the wsdl as
follows:
Replace the following:
<complexType
name="ArrayOfArrayOf_xsd_string">
<complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[][]"/> </restriction> </complexContent> </complexType> with this:
<complexType
name="ArrayOf_xsd_string">
<complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> </restriction> </complexContent> </complexType> <complexType name="ArrayOfArrayOf_xsd_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ArrayOf_xsd_string[]"/> </restriction> </complexContent> </complexType> This will tell .NET to use an array of arrays (a
jagged array) instead of a 2 dimensional array.
If you place the 2-D array in a class (bean), axis
will generate the latter code for it, so .NET will be able to understand it
without manual modification of the wsdl. Unfortunately, there is a bug in
axis which prevents it from deserializing 2D arrays properly if they are class
properties (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14033).
If your axis web service is only sending them back to a .NET client, this
shouldn't cause you any problems, but you won't be able to send one from the
client to the server.
I find it strange that axis generates the type
information inconsistently, depending on whether it is a bean property or
not. Is there any reason for this, axis developers?
One other thing, I am having trouble getting .NET
to read in even single dimensional arrays when they are class properties, so the
solution of putting it into a class might be a dead end too. I'm still
investigating this.
Let me know how you get on.
Martin Jericho
|
Title: .NET multi dimensional array
- .NET multi dimensional array Peake, Chris
- Re: .NET multi dimensional array Martin Jericho
- Re: .NET multi dimensional array Cun Yong Tan
- RE: .NET multi dimensional array Peake, Chris
- RE: .NET multi dimensional array Harry . Kobetitsch
- RE: .NET multi dimensional array Peake, Chris
- RE: .NET multi dimensional array Cun Yong Tan
