axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fred Preston (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-25) AxisC++ deserializer doesn't check parameters during deserialize
Date Wed, 05 Apr 2006 13:04:53 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-25?page=all ]
     
Fred Preston closed AXISCPP-25:
-------------------------------


> AxisC++ deserializer doesn't check parameters during deserialize
> ----------------------------------------------------------------
>
>          Key: AXISCPP-25
>          URL: http://issues.apache.org/jira/browse/AXISCPP-25
>      Project: Axis-C++
>         Type: Bug

>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Sam Lang
>     Assignee: Axis Developers Mailing List

>
> I can send the soap message:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>  <soapenv:Body>
>   <AddPoint><p1></p1><p2><x>5</x><y>3</y></p2></AddPoint>
>  </soapenv:Body>
> </soapenv:Envelope>
> And get back the response:
> <?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:AddPointResponse
> xmlns:ns1="http://www.opensource.lk/CPPService"><Point xsi:type="ns2:Point
> xmlns:ns2="http://www.opensource.lk/Point"><x xsi:type="xsd:int">0</x><y
> xsi:type="xsd:int">0</y></Point></ns1:AddPointResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
> As you can tell, the sent soap message is invalid, as it does not contain x and
> y elements within the p1 element.  The deserializer doesn't know that x and y
> elements are missing, but the service binding code should at least do some kind
> of check and return a fault.  I'm not sure if this is specific to the Calculator
> sample or if in general services don't return faults if what it expects to see
> in a soap message is invalid.

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