PEAR::SOAP <return> tag trouble in migration to PEAR::SOAP from NuSOAP
| From: | Jeff Rodriguez | Date: | Fri, 19 Nov 2004 03:32:08 +0000 |
| Subject: | PEAR::SOAP <return> tag trouble in migration to PEAR::SOAP from NuSOAP | ||
| Groups: | php.general php.soap | ||
| Request: | Send a blank email to php-general+get-202482@lists.php.net to get a copy of this message | ||
I'm trying to migrate to PEAR::SOAP from NuSOAP, but I'm confused as to
why the result sent back from a function is wrapped in a <return> tag.
The return part of my code is simple enough:
return array('lastStatus' => 'ok');
But this gets wrapped in a <return> tag:
<return xsi:type="xsd:string">
<lastStatus
xsi:type="xsd:string">ok</lastStatus></return></ns4:reportInResponse>
Here is the SOAP response:
<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="urn:mwsWSDL"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:reportInResponse>
<return xsi:type="xsd:string">
<lastStatus
xsi:type="xsd:string">ok</lastStatus></return></ns4:reportInResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--
Jeffrey Alan Rodriguez
Jeffrey.Rodriguez@gmail.com