Web Services

liunx

Guest
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.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
<!-- m --><a class="postlink" href="http://keithdevens.com/software/xmlrpc">http://keithdevens.com/software/xmlrpc</a><!-- m -->

PhpXMLRPC
<!-- m --><a class="postlink" href="http://phpxmlrpc.sourceforge.net/">http://phpxmlrpc.sourceforge.net/</a><!-- m -->

Soap

Pear SOAP
<!-- m --><a class="postlink" href="http://pear.php.net/package/SOAP">http://pear.php.net/package/SOAP</a><!-- m -->

NuSOAP
<!-- m --><a class="postlink" href="http://dietrich.ganx4.com/nusoap/Thanks">http://dietrich.ganx4.com/nusoap/Thanks</a><!-- m -->!

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!
 
Back
Top