Gareth
08-20-2002, 01:45 PM
Hi,
Anyone got any experience of using PHP with SOAP. It mainly for pretty simple RPC, but the implimentations seem to be in the early stages?
Any comments?
Thanks
Gareth
JustinH
08-20-2002, 03:29 PM
Though I haven't played with SOAP much, it is in the very early stages with PHP at this point. I've seen several different implementations, but as of yet, I haven't seen anything stable enough to even play with.
CagedTornado
08-22-2002, 01:05 AM
Dude! PHP with SOAP KICKS BUTT! I'd recommend checking out nuSOAP here:http://dietrich.ganx4.com/nusoap/index.php nuSOAP is an all-PHP implementation, and it's very slick (see the site for samples).
Examples (off the site):
Example usage for wsdl:
$soapclient = new soapclient('http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl','wsdl');
echo $soapclient->call('getQuote',array('symbol'=>'ibm'));
Example usage for WSDL using the proxy class:
$soapclient = new soapclient('http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl','wsdl');
$proxy = $soapclient->getProxy();
echo $proxy->getQuote('ibm');
Usage Summary for no wsdl:
$soapclient = new soapclient('http://services.xmethods.net:80/soap');
echo $soapclient->call('getQuote',array('symbol'=>'ibm'),'urn:xmethods-delayed-quotes','urn:xmethods-delayed-quotes#getQuote');
Dan
anantatman
08-25-2002, 05:48 AM
That's what I use.. works pretty well