[ 
http://issues.apache.org/jira/browse/AXISCPP-608?page=comments#action_66849 ]
     
Dushshantha Chandradasa commented on AXISCPP-608:
-------------------------------------------------

The problem is with deserialization of simple arrays in rpc style generated 
code. If I modify the generated code of the class intarrayType as follows ( 
which is the way doc/lit style handles the simple arrays) the expected soap 
response can be observed. 

int Axis_DeSerialize_intArrayType(intArrayType* param,
IWrapperSoapDeSerializer* pIWSDZ)
{
        Axis_Array array;

        array = pIWSDZ->getBasicArray(XSD_INT, "item",0);
        param->intItem.m_Array = (xsd__int**)new xsd__int*[array.m_Size];
        param->intItem.m_Size = array.m_Size;

        memcpy( param->intItem.m_Array, array.m_Array, sizeof( xsd__int
*) * array.m_Size);
        return pIWSDZ->getStatus();
}

This is the only RPC test that we are working with Simple Arrays and the test 
framework says that the test is passing because the client expects a nonempty 
return value. It never checks the content which is a bunch of garbage.


> For intArrayType sever respond is wrong for RPC style.
> ------------------------------------------------------
>
>          Key: AXISCPP-608
>          URL: http://issues.apache.org/jira/browse/AXISCPP-608
>      Project: Axis-C++
>         Type: Bug
>   Components: Server - General
>     Versions: 1.5 Final
>  Environment: Windows with Axis c++ server.
>     Reporter: Chinthana Danapala

>
> Server send gabage respond to intArrayType in SimpleArray test.
> Client sending .....
> <SOAP-ENV:Body>
> <ns1:echoIntArray xmlns:ns1="http://soapinterop.org/";>
> <intArrayType xsi:type="ns2:intArrayType" 
> xmlns:ns2="http://soapinterop.org/xsd";><intItemArray 
> xmlns:enc="http://www.w3.org/2001/06/soap-encoding"; 
> enc:arrayType="xsd:int[2]">
> <item>2</item>
> <item>2</item>
> </intItemArray>
> </intArrayType></ns1:echoIntArray>
> </SOAP-ENV:Body>
> Server respond.......
> <SOAP-ENV:Body>
> <ns1:echoIntArrayResponse xmlns:ns1="http://soapinterop.org/";>
> <intArrayType xsi:type="ns2:intArrayType" 
> xmlns:ns2="http://soapinterop.org/xsd";><intItemArray 
> xmlns:enc="http://www.w3.org/2001/06/soap-encoding"; 
> enc:arrayType="xsd:int[2]">
> <item>9323264</item>
> <item>9323264</item>
> </intItemArray>
> </intArrayType></ns1:echoIntArrayResponse>
> </SOAP-ENV:Body>
> This is happening in RPC style only, Document style is fine.

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