Click to See Complete Forum and Search --> : Web Services


Frog_Tantrum
09-11-2004, 08:28 AM
Hi,

I'm looking for a good tutorial or some documentation for web services with php 5. Does anyone have any good links or some example code they would like to share?

Thanks!

F.

kkobashi
09-17-2004, 06:58 PM
You can use XML-RPC or SOAP for building your own web services. There are various PHP toolkits of each of those and coding for each will be different.

Choose your poison and enjoy!

XML-RPC

Keith Devin's Implementation
http://keithdevens.com/software/xmlrpc

PhpXMLRPC
http://phpxmlrpc.sourceforge.net/

Soap

Pear SOAP
http://pear.php.net/package/SOAP

NuSOAP
http://dietrich.ganx4.com/nusoap/

Frog_Tantrum
09-18-2004, 05:10 AM
Thanks!

I upgraded to php 5, enabled the included soap extension and got things running without too much trouble.

One thing I was really impressed with was the way the extension interpreted Coldfusion's native query object - nuSoap generated a huge amount of XML, but with the PHP 5 extension the query results were returned as a stdObject, and using print-r I could see that is was basically an array, and could easily loop throught the results!

I found a good tutorial, will post once my laptop has been repaired!