NYCPHP Meetup

NYPHP.org

[nycphp-talk] Parsing SOAP Response

Adam Maccabee Trachtenberg adam at trachtenberg.com
Wed Feb 1 20:10:18 EST 2006


On Wed, 1 Feb 2006, Joseph Crawford wrote:

> i am using soap to get that xml response, but i was not sure the soap ext
> could parse it so i used $sclient->__getLastResponse() in SimpleXML, can you
> advise (or direct me to reading) how i would get the data from ext/soap,
> without using simpleXML?

$client = new SOAPClient('my.wsdl');
$response = $client->query('param');
$result = $response->Result;

-adam

-- 
adam at trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list