views:

231

answers:

1

As far as i have scourged the web, i can see an abundance of articles on how to setup Nusoap and use it to setup a soap server/client in PHP.

However, none of them seem to point to any advantages of using it than PHP's own native SOAP library. Can anyone tell me what are the pros/cons between :

  • Nusoap
  • PHP
  • SOAP
  • PEAR::SOAP
  • Zend SOAP
+2  A: 

PHP's SoapClient class requires PHP5 or above. Nusoap and Pear Soap run on PHP4. That's the main difference. At last check NuSoap wasn't officially compatible with PHP5. I had to find a port someone put on google code in order to run it under php5.

That's pretty much it. Although I have run into random weird WSDL parsing issues when using PHP's SoapClient as opposed to NuSoap. Most notably netenberg.com's licensing API. But basically if you are running PHP5, you'll probably just want to use PHP's SoapClient and save yourself the hassle of using an external library

Mark