Which is better PHP SOAP or NuSOAP? Which is better PHP SOAP or NuSOAP? php php

Which is better PHP SOAP or NuSOAP?


PHP SOAP is available since PHP 5.0.1 . If you are in PHP4, you have to use NuSOAP.

Native PHP codes are usually better in performance & relatively bug free, so if PHP SOAP is available, use it. More, NuSOAP has not much documentation on their official website.


Although there is some nuance to mention, I think NuSoap is better:

  1. Nusoap has some predefined methods that in case of using Soap you should write some of your own.
  2. because SOAP performance bottleneck is server response time, there is no fear to use a predefined class Like Nusoap.
  3. Handling UTF-8 is a lot more easy in Nusoap.
  4. Nusoap offers some good functions to create a SOAP server.


Using nusoap, no need to write the WSDL file