Home » Web Services » SOAP » Bug #2371
Wrong output construction
Details
| Submitted | 2004-09-22 13:15 UTC |
|---|---|
| From | gian at corp dot grupos dot com dot br |
| Assigned | yunosh |
| Status | Bogus |
| Package | SOAP |
| PHP Version | 4.3.9 |
| OS | FreeBSD |
| Roadmaps | (Not assigned) |
Comments
[2004-09-22 13:15 UTC] gian at corp dot grupos dot com dot br
Description:
------------
The OUTPUT from SOAP Client is not like the WSDL definition.
I try to send an string type value and SOAP Client converts to integer.
Reproduce code:
---------------
WSDL definition for message:
<message name="setCommunityRequest">
<part name="sessionId" type="xs:string"/>
<part name="idCommunity" type="xs:long"/>
<part name="communityLogin" type="xs:string"/>
</message>
Expected result:
----------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<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"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="http://www.grupos.com.br/ws/session"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:setCommunity>
<sessionId xsi:type="xsd:string">16de01beadd6e3395aada11fc4d49402</sessionId>
<idCommunity xsi:type="xsd:int">0</idCommunity>
<communityLogin xsi:type="xsd:string">0</communityLogin></ns4:setCommunity>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Actual result:
--------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<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"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="http://www.grupos.com.br/ws/session"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:setCommunity>
<sessionId xsi:type="xsd:string">16de01beadd6e3395aada11fc4d49402</sessionId>
<idCommunity xsi:type="xsd:int">0</idCommunity>
<communityLogin xsi:type="xsd:int">0</communityLogin></ns4:setCommunity>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>