문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top