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

Thilina Gunarathne resolved AXIS2-962.
--------------------------------------

    Resolution: Invalid

I'm unable to recreate the problem...Everything seems to be working fine and 
the test passes.

Please try with the latest nightly build and let us know.. 

Client Request

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header />
      <soapenv:Body>
         <ns1:countEnclosedArray xmlns:ns1="http://arrayws.hubbub.com.au/xsd";>
            <enclosingComplexType>
               <array>
                  <name>A</name>
                  <value>1</value>
               </array>
               <array>
                  <name>B</name>
                  <value>2</value>
               </array>
               <array>
                  <name>C</name>
                  <value>3</value>
               </array>
               <array>
                  <name>C</name>
                  <value>3</value>
               </array>
               <otherValue>MyOtherValue</otherValue>
            </enclosingComplexType>
         </ns1:countEnclosedArray>
      </soapenv:Body>
   </soapenv:Envelope>0

Server Response

<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header />
      <soapenv:Body>
         <ns:countEnclosedArrayResponse 
xmlns:ns="http://arrayws.hubbub.com.au/xsd";>
            <ns:return>4</ns:return>
         </ns:countEnclosedArrayResponse>
      </soapenv:Body>
   </soapenv:Envelope>

Output From the Server

arrayLength=4
index=0 name=A value=1
index=1 name=B value=2
index=2 name=C value=3
index=3 name=D value=4


> 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
>         Assigned To: Thilina Gunarathne
>            Priority: Blocker
>         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