将 XML 读入 WSDL
我正在我的项目 .Net C# 中通过 WSDL Webservice 进行一些调用,我需要查看 WSDL 发送和接收的 XML 请求和响应,任何人都可以帮助我如何读取此信息?
I'm making some calls via WSDL Webservice in my project .Net C # and I'm needing to see the XML Request and Response sends and received by WSDL, can anyone help me how can I read this information?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在服务器或客户端计算机上使用 fiddler 来捕获请求和响应。只要启动它,它就会监控机器上的http流量。
You could use fiddler on the server or client machine to capture the requests and responses. Just start it up and it will monitor the http traffic on the machine.
您需要使用 SoapExtensions。此方法将简单地写出包含 Web 服务执行的所有通信的日志文件。 XML 将在那里。
C# 代码:
在您的 web.config 中:
解决方案如下所述:
soap 扩展来记录我的webservices
或
如何跟踪 ScriptService WebService请求?
或
http://blog.encoresystems.net/articles/how-to-capture-soap-envelopes-when-consuming-a-web-service.aspx
You need to use SoapExtensions. This method will simply write out log files containing all of the communications that the webservice performs. The XML will be there.
C# code:
In your web.config:
The solution is described here:
soap extension to log my webservices
or
How to trace ScriptService WebService requests?
or
http://blog.encoresystems.net/articles/how-to-capture-soap-envelopes-when-consuming-a-web-service.aspx