Re: PEAR::SOAP <return> tag trouble in migration to PEAR::SOAP from NuSOAP

From: Date: Fri, 03 Dec 2004 09:55:43 +0000
Subject: Re: PEAR::SOAP <return> tag trouble in migration to PEAR::SOAP from NuSOAP
References: 1  Groups: php.general php.general php.soap php.soap 
Request: Send a blank email to php-general+get-203515@lists.php.net to get a copy of this message
I had the same trouble, this is another bug which causes big trouble with many SOAP-Clients. My bugfix now works well with all the clients I use, so maybe this helps you as well: See http://pear.php.net/bugs/bug.php?id=2877 Rgs - Ro!and. Jeff Rodriguez schrieb:
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>


« previous php.general (#203515) next »