문제

I am migrating a bunch of PHP code to a new server. The code is used to make SOAP calls to a remote server for pushing and pulling info (database syncing). I have identified many of the scripts needing to be updated, but cannot be 100% sure that I have everything and the guy who developed this stuff is no longer with the company.

My question is, is there a way to capture and log all SOAP requests from the server? This way I will be able to pinpoint exactly what is running. Perhaps turn on logging for the PHP SoapClient constructor? I wasn't able to find a way to do it. If not, perhaps Apache (LAMP stack [CentOS 6.5]) or another service running on the server can do this?

Thanks in advance.

올바른 솔루션이 없습니다

다른 팁

You can use SoapClient::_getLastRequest() and SoapClient::_getLastResponse(), then log the output using error_log or another logging platform.

You could then use a tool like SoapUI to manually send requests to the server, which would help in debugging requests.

You need to set 'trace' to true in the options array of the constructor for these methods to be enabled.

http://au1.php.net/manual/en/soapclient.getlastrequest.php http://au1.php.net/manual/en/soapclient.getlastresponse.php

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