Hi all,
I am not quite sure whether this has been asked before, but I think
there was a bugreport. I am not quite sure whether this bug-report
really applies to me, so 'll ask anyway.
When you have an array of a sequence, axis does not seem to use the name
of the sequence-type but only put the elements contained in the
sequence-type into the array.
OK, an example:
This is the part of the wsdl-file applying to both the sequence and the
array (Somewhat shortened though).
<xsd:complexType name='A'>
<xsd:sequence>
<xsd:element name='ElementName' type='xsd:anyURI'/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name='ArrayOfA'>
<xsd:complexContent>
<xsd:restriction base='SOAP-ENC:Array'>
<xsd:attribute ref='SOAP-ENC:arrayType' wsdl:arrayType='...:A[]'/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
When you invoke a method that contains the array as a parameter, axis
creates something like:
....
<ArrayOfA>
<ElementName>.....</ElementName>
</ArrayOfA>
instead of:
<ArrayOfA>
<A>
<ElementName>.....</ElementName>
</A>
</ArrayOfA>
Now my question is, which version is the right one?
Best Regards and thanks,
Jens-Michael Klaus
-----------------------------------------------------
[EMAIL PROTECTED]
0049 30 3463 7151
Fraunhofer Institute for Open Communication Systems
Kaiserin-Augusta-Allee 31
10589 Berlin