Serialization of (Integer-)array in array not compatible with .NET
------------------------------------------------------------------

         Key: AXIS-2065
         URL: http://issues.apache.org/jira/browse/AXIS-2065
     Project: Apache Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: 1.2, 1.2.1    
 Environment: Windows XP, Tomcat 5.0
    Reporter: Jürgen Moßgraber


I have the following WSDL code:

<complexType name="Param">
        <sequence>
                <element name="name" nillable="true" type="xsd:string"/>
                <element name="value" nillable="true" type="xsd:anyType"/>
        </sequence>
</complexType>
<complexType name="ArrayOfParam">
        <complexContent>
                <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" 
wsdl:arrayType="impl:Param[]"/>
                </restriction>
        </complexContent>
</complexType>

The value paramter may contain an array which was serialized in 1.2RC3 like 
this:

1.2 RC3:

<multiRef id="id12" soapenc:root="0" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns13:Param">
        <name xsi:type="xsd:string">children</name>
        <value soapenc:arrayType="xsd:anyType[16]" xsi:type="soapenc:Array">
                <item href="#id17"/>
                <item href="#id18"/>
                <item href="#id19"/>
                <item href="#id20"/>
                <item href="#id21"/>
                <item href="#id22"/>
                <item href="#id23"/>
                <item href="#id24"/>
                <item href="#id25"/>
                <item href="#id26"/>
                <item href="#id27"/>
                <item href="#id28"/>
                <item href="#id29"/>
                <item href="#id30"/>
                <item href="#id31"/>
                <item href="#id32"/>
        </value>
</multiRef>

In 1.2 and 1.2.1 "item" was changed to "value" which can't be (strangely) not 
deserialized with a .NET (C#) client:

<multiRef id="id12" soapenc:root="0" 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns11:Param">
        <name xsi:type="xsd:string">children</name>
        <value soapenc:arrayType="xsd:int[16]" xsi:type="soapenc:Array">
                <value href="#id16"/>
                <value href="#id17"/>
                <value href="#id18"/>
                <value href="#id19"/>
                <value href="#id20"/>
                <value href="#id21"/>
                <value href="#id22"/>
                <value href="#id23"/>
                <value href="#id24"/>
                <value href="#id25"/>
                <value href="#id26"/>
                <value href="#id27"/>
                <value href="#id28"/>
                <value href="#id29"/>
                <value href="#id30"/>
                <value href="#id31"/>
        </value>
</multiRef>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to