We have the following two types defined in the wsdl:
<complexType name="ArrayOfStringPair">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="gv:StringPair" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="gv:StringPair[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="ArrayOfArrayOfStringPair">
<complexContent>
<restriction base="SOAP-ENC:Array">
<sequence>
<element name="item" type="gv:ArrayOfStringPair" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute ref="SOAP-ENC:arrayType" WSDL:arrayType="gv:ArrayOfStringPair[]"/>
</restriction>
</complexContent>
</complexType>
The JAX produced methods for calls that return an ArrayOfArrayOfStringPair return StringPair[][], which seems a reasonable type.
However, when JAX tries to process such a return message, I get the following error:
array has unexpected rank: expected=2, actual=1, arrayType=gv:StringPair[][124]
If I read that right, it seems to be saying it is expecting a two-dimensional array, and thinks it received a one-dimensional one...yet it clearly has received a two-dimensional array. Is it the lack of (or presence of) a size specification in one of the dimensions that is the problem? Or does the error mean something else entirely?
Thanks,
B
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net