Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Benjamin Eberlei:
SOAP and PHP in 2014
Jan 31, 2014 @ 15:44:42

Benjamin Eberlei has a new post today looking at the future of SOAP in PHP for the upcoming year. In his opinion, despite negative comments and harassment the technology gets, it still has the advantage over REST.

These last years REST has gotten all the buzz, everybody seems to be using it and there are lots of talks about REST on conferences. SOAP used to be big for building APIs, but everybody seems to hate it for various reasons. I have used SOAP in several projects over the last 10 years and this blog post is a random collection of information about the state of SOAP in PHP 2014, as a reminder to myself and to others as well. Why care about SOAP in 2014? For server to server (RPC) communication it still has massive time to market and stability benefits over REST.

He points out some things REST lacks like a standard to describe endpoints and a way to automatically generate clients in any language. He then gets into some of the basics of SOAP and PHP's included functionality. He shows some of the configuration options you can use for things like debug output, exceptions and custom exception handlers. He recommends the Zend Frameworks SOAP Autodiscovery for generating WSDLs and the XSD-TO-PHP library to create objects from a well-defined WSDL. He covers the different modes you can use to "talk SOAP" and using the ZendSoapClientLocal to make a request without the need of a web server.

tagged: soap rest comparison wsdl soapserver introduction

Link: http://www.whitewashing.de/2014/01/31/soap_and_php_in_2014.html

ThinkPHP Blog:
Extending class SoapServer (PHP5) for debugging
Jan 04, 2007 @ 20:17:30

On the ThinPHP Blog today, there's a new post that talks about extending one of the newer bts of functionality to be added into the PHP core - the SOAP functionality. Specifically, they look at extending the SoapServer class to help with debugging.

For long-term reasons (it's a large multi-year project) and to provide more comfort for our customer (internal monitoring) and the communication from us (the development team) to the external entities (internal/external consumers of the webservice), we decided to improve the debugging capabilities of the SOAP service.

They give a code example of how to use this extension functionality. The script is set to make a request to a remote server and store all of the response information in an easy to use standardized error handling functionality.

tagged: soap soapserver extend php5 debugging soap soapserver extend php5 debugging

Link:

ThinkPHP Blog:
Extending class SoapServer (PHP5) for debugging
Jan 04, 2007 @ 20:17:30

On the ThinPHP Blog today, there's a new post that talks about extending one of the newer bts of functionality to be added into the PHP core - the SOAP functionality. Specifically, they look at extending the SoapServer class to help with debugging.

For long-term reasons (it's a large multi-year project) and to provide more comfort for our customer (internal monitoring) and the communication from us (the development team) to the external entities (internal/external consumers of the webservice), we decided to improve the debugging capabilities of the SOAP service.

They give a code example of how to use this extension functionality. The script is set to make a request to a remote server and store all of the response information in an easy to use standardized error handling functionality.

tagged: soap soapserver extend php5 debugging soap soapserver extend php5 debugging

Link:


Trending Topics: