Question

For debugging purposes I'd like to see what SOAP request and responses are send back and forth between a SoapClient and SoapServer.

I remember seeing once that some methods on the instances of SoapServer or SoapClients were able to trace this SOAP messages. Is this really possible? Or some other way to able to see the SOAP envelopes?

Thanks in advance.

Was it helpful?

Solution

soapUI is indeed a valuable tool. You may also find wireshark useful, and you can use the debugging features of php's soap api. Eg. getLastRequestHeaders, getLastRequest and the corresponding getLastResponseHeaders, getLastResponse

OTHER TIPS

take a look at soapUI, its a realy great tool for testing soap-services.

The SoapClient class has these methods:

public string __getLastRequest ( void )
public string __getLastRequestHeaders ( void )
public string __getLastResponse ( void )
public string __getLastResponseHeaders ( void )

referenced from: http://php.net/manual/en/class.soapclient.php

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top