拦截来自 SOAP 请求的信封

发布于 2024-10-03 17:47:58 字数 166 浏览 10 评论 0原文

出于调试目的,我想查看 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

苍白女子 2024-10-10 17:47:58

SoapUI 确实是一个很有价值的工具。您可能还会发现wireshark很有用,并且您可以使用php的soap api的调试功能。例如。 getLastRequestHeadersgetLastRequest 和相应的 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 corresponding getLastResponseHeaders, getLastResponse

北城孤痞 2024-10-10 17:47:58

看看 soapUI,它是测试肥皂服务的一个非常好的工具。

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

乖乖哒 2024-10-10 17:47:58

SoapClient 类具有以下方法:

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

引用自: http://php.net/manual/en /class.soapclient.php

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文