What is the best solution to create a SOAP server in PHP?

I need some advice on which library is the best choice when it comes to creating SOAP servers (and, ultimately, SOAP clients) in PHP.

I know there are built-in functions for this, but is this really the best way to do this?

In addition, if you could attach some arguments as to why a particular library / method is better, I would be very happy.

The only requirement I currently have (besides the obvious client / server part) is that it can generate WSDL.

Does the WSDL version really matter? 1.1 or 2.0, what is the real difference / benefit of using 2.0?

+7
soap wsdl php
source share
3 answers

I would recommend looking at the Zend_Soap class of the Zend Framework.

Its quite complete and reliable and it has been available in the frame long enough to get most, if not all of its rough spots smoothed out. Plus its part of the structure, which is actively supported, so it will continue to support new standards, and detected errors will be fixed.

+5
source share

I use the SoapServer PHP built-in class to serve requests, since it is implemented in C, so it is faster than any other class implemented in PHP (Zend, nusoap).

The limitation here is that SoapServer cannot generate WSDL (starting May 11), so I use Zend SOAP Autodiscovery to create it.

+6
source share
+1
source share

All Articles