axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-616) Empty strings or null values misinterpreted in Arrays by SoapDeserializer
Date Mon, 06 Jun 2005 04:50:44 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-616?page=comments#action_12312712 ] 

Dushshantha Chandradasa commented on AXISCPP-616:
-------------------------------------------------

For me it seems to work properly. I sent a string array with one of the two elements is set
to null to the server and just got the same string array retuning by the server. I got the
expected returning soap message from the server as follows.

Request sent by the Client 
-------------------------------------

POST /axis/SimpleArrays HTTP/1.1
Host: localhost:8080
Content-Type: text/xml; charset=UTF-8
SOAPAction: "SimpleArrays#echoStringArray"
Content-Length: 437

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:echoStringArray xmlns:ns1="http://arrays.test.apache.org">
<ns1:arg_0_7>Apache</ns1:arg_0_7>
<ns1:arg_0_7 xsi:nil="true"></ns1:arg_0_7>
</ns1:echoStringArray>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Response sent by the Server
----------------------------------------


<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:echoStringArrayResponse xmlns:ns1="http://arrays.test.apache.org">
<echoStringArrayReturn>Apache</echoStringArrayReturn>
<echoStringArrayReturn xsi:nil="true"></echoStringArrayReturn>
</ns1:echoStringArrayResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Giorgio, it would be helpful for me to debug if u attach the WSDl file u used for this.



> Empty strings or null values misinterpreted in Arrays by SoapDeserializer
> -------------------------------------------------------------------------
>
>          Key: AXISCPP-616
>          URL: http://issues.apache.org/jira/browse/AXISCPP-616
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Versions: 1.5 Final
>  Environment: Win32
>     Reporter: Giorgio Saviane
>     Priority: Blocker

>
> A WS method call returning an Array of Strings (a Java String[] type) fails on the SoapDeSerializer::getBasicArray
method if the array contains some empty strings or null objects.
> The failure could be isolated at line 1330 of SoapDeSerializer.cpp, on a piece of code
where a call to the DESERIALIZE_ENCODED_POINTER_ARRAY_BLOCK macro occurs.

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


Mime
View raw message