[ http://issues.apache.org/jira/browse/AXISCPP-329?page=all ]
Chinthana Danapala resolved AXISCPP-329:
----------------------------------------
Resolution: Fixed
Add support to handle nil values in RPC/Encoded.
Sending ..........................................
<?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:doGetSummary xmlns:ns1="urn:ADEC_MAST">
<String1 xsi:nil="true"></String1>
<String2
xsi:type="xsd:string">http://www.w3.org/2001/XMLSchema-instance</String2>
<String0 xsi:type="xsd:string">true</String0>
</ns1:doGetSummary>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Received.............................
<?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:doGetSummaryResponse xmlns:ns1="urn:ADEC_MAST">
<SummaryResult xsi:type="ns1:SummaryResult"><Value0 xsi:nil="true"></Value0>
<Value1 xsi:type="xsd:string">http://www.w3.org/2001/XMLSchema-instance</Value1>
<Value2 xsi:type="xsd:string">true</Value2>
</SummaryResult></ns1:doGetSummaryResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
> NIL xsd:string type segfaults server in RPC/Encoded
> ---------------------------------------------------
>
> Key: AXISCPP-329
> URL: http://issues.apache.org/jira/browse/AXISCPP-329
> Project: Axis-C++
> Type: Bug
> Components: Server - Engine
> Versions: current (nightly)
> Environment: tested on win32 with rpc/encoded
> Reporter: Steve Hardy
> Assignee: Chinthana Danapala
>
> There is no (correct) handling in SoapDeSerializer for NIL xsd:string types
> in rpc/encoded. This causes SoapDeSerializer::getXSDType to use a NULL
> pointer returned by splitQNameString to be passed to getNS4Prefix, which
> subsequently segfaults. I'm not sure whether this is due to the client
> sending the wrong tag, but this should be fixed on the server in any case.
> In my test case, the attributes are only:
> + [0x0] 0x01218548 "nil"
> + [0x1] 0x01218590 "http://www.w3.org/2001/XMLSchema-instance"
> + [0x2] 0x012185f8 "true"
> so the type is missing here.
--
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