8

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 and client in PHP.

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

  • NuSOAP
  • PHP
  • SOAP
  • PEAR::SOAP
  • Zend SOAP
Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
YD8877
  • 9,236
  • 18
  • 56
  • 89
  • The only time I was forced to use NuSoap was when I was stuck with a production server running PHP 4.x, which has no native SOAP library and little OOP support required by some of the other libraries. – rbaker86 Apr 28 '10 at 10:01

2 Answers2

9

NuSOAP generates WSDL.

PHP's SoapServer does not.

That is why I decided to use NuSOAP.

For client, I use native client, it has better error reporting.

Shinhan
  • 2,750
  • 1
  • 16
  • 21
6

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
  • 6,198
  • 1
  • 29
  • 31
  • We've used nusoap 0.7.3 with php 5.2, and now nusoap 0.9.5 with php 5.3. Both cases on centos 5. Had no problems. – Haluk May 16 '12 at 11:02