如何在 C# 中查看实际的 SOAP 请求/响应 [英] How to look at the actual SOAP request/response in C#

查看:34
本文介绍了如何在 C# 中查看实际的 SOAP 请求/响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中添加了一个 wsdl 文件作为服务引用.应用程序将 SOAP 消息发送到特定设备,然后该设备以 SOAP 格式发送响应.

I have added a wsdl file in my project as a service reference. The application sends SOAP messages to a particular device which then sends the response in SOAP format.

有没有办法查看用 XML 包装的实际 SOAP 消息?必须打开wireshark才能查看SOAP消息变得乏味.

Is there a way to look at the actual SOAP message that is wrapped in XML? Having to turn on wireshark to look at the SOAP messages gets tedious.

推荐答案

您可能正在寻找 SOAP 扩展,看看这个帖子:

You are probably looking for SOAP extension, look at this post:

在将 SOAP 消息发送到.NET 中的 WebService

这篇关于如何在 C# 中查看实际的 SOAP 请求/响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆