跟踪 Visual Studio 生成的 Web 服务代理发出的请求内容
我有一个由 Visual Studio 中的“添加 Web 引用”功能构建的 Web 引用代理,需要跟踪/查看它发布到远程 Web 服务器的实际内容。 有人可以告诉我该怎么做吗? 谢谢!
I have a web reference proxy built up by the "Add Web Reference" feature in Visual Studio and need to trace/see the actual content it's posting to the remote web server. Can someone please tell me how I can do? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要跟踪 Web 服务请求和响应详细信息,您可以在 web.config 中添加以下配置。
通过添加此内容,对于每个请求和响应,日志将在您的根文件夹中创建,名称为“REQ_RES.log”
To trace web service request and response details you can add the below configuration in web.config.
by adding this, for every request and response the log will be created in your root folder with the name of 'REQ_RES.log'