[ http://issues.apache.org/jira/browse/AXIS2-962?page=all ]

William Ferguson updated AXIS2-962:
-----------------------------------

    Attachment: ArrayService.wsdl

> Malformed deserialization of an array contained within a ComplexType
> --------------------------------------------------------------------
>
>                 Key: AXIS2-962
>                 URL: http://issues.apache.org/jira/browse/AXIS2-962
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: William Ferguson
>         Attachments: ArrayService-client-source.jar, ArrayService-Source.jar, 
> ArrayService.wsdl
>
>
> I have a service method that accepts a complex type called 
> EnclosingComplexType.
> EnclosingComplexType has 2 attributes
>   String #otherValue
>   MyComplexType[] #array
> A well formed SOAP envelope is sent, but during deserialization on the server 
> the contents of the array have been scrambled (nb #otherValue is preserved). 
> #array always has a length of 2 for MyComplexType, though it seems to match 
> the number of attributes on MyComplexType, ie add an attribute to 
> MyComplexType and the array always has 3 elements regardless of how many are 
> sent. The values of all attributes of all MyComplexType elements are null.
> The service + services. xml was deployed and the WSDL is retrieved from the 
> AxisServlet. (service source + WSDL attached).
> I generated the stubs and ADB classes using :
> <target name="generate.client" depends="init">
>   <exec executable="${axis2.wsdl2java.home}/bin/WSDL2Java.bat">
>   <arg line="-uri ${wsdl.uri}"/> <!-- uri from which to get WSDL -->
>   <arg line="-o ${build}"/> <!-- Output directory in which to generate files 
> -->
>   <arg line="-p ${generated.package.name}"/> <!-- package in which to 
> generate classes -->
>   <arg line="-pn ${port.name}"/> <!-- Specify the port to hit -->
>   <arg value="-s"/> <!-- Synchronous style only -->
>   <!--<arg value="-t"/>--> <!-- Generate a TestCase -->
>   <arg value="-u"/> <!-- Unpacks the data-Binding classes from the Stub -->
> </exec>
> </target>
> I then executed using ArrayServiceEnclosingTypeTest (enclosed).

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to