You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Swathi Kanury <SK...@lifecare.com> on 2005/07/18 22:44:00 UTC
Multi dimensional arrays in axis
Hi All,
I am using axis 1.1 to write client code for a webservice.
How can I get the multi dimensional array declaration in WSDL as:
<strings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soapenc:arrayType="xsd:string[2,3]">
<string xsi:type="xsd:string"> EDMAT </string>
<string xsi:type="xsd:string"> 43 </string>
<string xsi:type="xsd:string"> 1488 </string>
<string xsi:type="xsd:string"> KIT </string>
<string xsi:type="xsd:string"> 43 </string>
<string xsi:type="xsd:string"> 1488 </string>
</strings>
Axis keeps giving me the array representation as:
<strings xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[][2]"
xmlns:ns2="java:language_builtins.lang"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/
encoding/">
<item soapenc:arrayType="xsd:string[3]">
<item>EDMAT</item>
<item>43</item>
<item>1488</item>
</item>
<item soapenc:arrayType="xsd:string[3]">
<item>KIT</item>
<item>43</item>
<item>1488</item>
</item>
</strings>
Please help.
Thanks in advance for your help.
-Kanury.
The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.