拦截来自 SOAP 请求的信封
出于调试目的,我想查看 SoapClient 和 SoapServer 之间来回发送的 SOAP 请求和响应。
我记得曾经看到 SoapServer 或 SoapClients 实例上的某些方法能够跟踪此 SOAP 消息。这真的可能吗?或者通过其他方式查看 SOAP 信封?
提前致谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
SoapUI 确实是一个很有价值的工具。您可能还会发现wireshark很有用,并且您可以使用php的soap api的调试功能。例如。
getLastRequestHeaders
,getLastRequest
和相应的getLastResponseHeaders
,getLastResponse
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 correspondinggetLastResponseHeaders
,getLastResponse
看看 soapUI,它是测试肥皂服务的一个非常好的工具。
take a look at soapUI, its a realy great tool for testing soap-services.
SoapClient 类具有以下方法:
引用自: http://php.net/manual/en /class.soapclient.php
The SoapClient class has these methods:
referenced from: http://php.net/manual/en/class.soapclient.php