Intercept envelope from SOAP request
문제
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.
해결책
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
다른 팁
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