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

Samisa Abeysinghe's Blog:
Tracing SOAP Messages (and Installing via PECL)
Jan 08, 2008 @ 19:49:00

On his blog today, Samisa Abeysinghe points out a library that can be used to trace the SOAP messages going back and forth between your client and server - the WSO2 Web services framework for PHP.

The Web services client class, WSClient has two methods for this, getLastRequest() and getLastResponse(). After calling the request() method of the client instance, you can call any of those methods to gain access to the messages.

Simple example code is included showing how to grab that information from the client object. If you're looking for a way to get the WSF/PHP functionality installed on your system, check out this step-by-step tutorial on using the PECL tool to create and install the packages to your PHP setup.

tagged: soap trace message client ws02 webservice framework soap trace message client ws02 webservice framework

Link:


Trending Topics: