Have a look at www.w3.org/TR/soap section 5.4.2 Arrays 
Sylvain.

-----Original Message-----
From: Simon McClenahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:20 PM
To: Axis User (E-mail)
Subject: Array complexType


In my WSDL embedded Schema I have:

...
<complexType name="ArrayOfOption">
        <complexContent>
                <restriction base="soapenc:Array">
                        <sequence>
                                <element name="option" type="tns:Option"
minOccurs="0" maxOccurs="unbounded"/>
                        </sequence>
                </restriction>
        </complexContent>
</complexType>

<complexType name="Option">
        <all>
                <element name="name" type="string"/>
                <element name="value" type="string"/>
        </all>
</complexType>
...


After WSDL2Java and making a call, the request shows:

...
   <options xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="ns1:Option[5]">
    <item xsi:type="ns1:Option">
     <name xsi:type="xsd:string">template</name>
     <value xsi:type="xsd:string">D:\templates\template1.htm</value>
    </item>
    <item xsi:type="ns1:Option">
...




I am expecting an <option> tag instead of an <item> tag. This happens
both with and without multiref enabled. Bug?

cheers,
        Simon

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

Reply via email to