C#SOAP Web服务客户端-显示如何记录所有原始SOAP输入和输出的示例? [英] C# SOAP Web Services client - example that shows how to log all raw SOAP intput and output?

查看:52
本文介绍了C#SOAP Web服务客户端-显示如何记录所有原始SOAP输入和输出的示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个C#示例,该示例演示如何访问远程SOAP Web服务,并记录所有完整的原始SOAP请求和完整的原始SOAP响应(记录到文件,甚至只记录我可以做的字符串).

I'm looking for a C# example showing how to access a remote SOAP Web Service, and logging (to a file, or even just to a string I can do whatever with) all complete raw SOAP requests and complete raw SOAP responses.

我在StackOverflow上发现了一些其他主题相似的帖子,但是它们似乎引用了一个web.config文件,而我的 desktop 应用程序没有该文件.我认为这是因为他们以查询远程SOAP Web服务的Web应用程序的形式使用C#.我的是一个桌面应用程序.

I found some other posts on StackOverflow with similar topics, but they seem to reference a web.config file, which my desktop application does not have. I assume this is because they are using C# in the form of a web application querying a remote SOAP web service. Mine is a desktop application.

有没有人?

推荐答案

您可以使用SOAP 扩展 以字符串形式获取 SOAP 内容,然后将其记录在任何地方.

You could use SOAP extensions to get the SOAP content as a string and then log it wherever.

这篇关于C#SOAP Web服务客户端-显示如何记录所有原始SOAP输入和输出的示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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