获取SOAP消息发送到web服务的.NET之前 [英] Get SOAP Message before sending it to the WebService in .NET

查看:127
本文介绍了获取SOAP消息发送到web服务的.NET之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调用外部Web服务的HTTPS。

I'm calling an external HTTPS webservice.

为了检查什么是错的,车主需要我送SOAP请求。

In order to check what is wrong, the owner needs the SOAP request I'm sending.

我有一个Web引用,并在2008年产生VS生成的代理类......

I have a web reference and the generated proxy class generated by VS 2008...

有没有办法看到SOAP消息只是在发送前?

我想在某些.NET code ......因为我试过没看到Web服务调用监听器不知道为什么。

I'm thinking in some .net code... because the Sniffers I tried didn't "see" the webservice invocation don't know why.

推荐答案

你需要的是一个的SoapExtension。有不少很好的例子在这里:

What you need is a SoapExtension. There's quite a few good examples here:

<一个href="http://stackoverflow.com/questions/256234/how-do-i-get-access-to-soap-response">http://stackoverflow.com/questions/256234/how-do-i-get-access-to-soap-response

<一个href="http://stackoverflow.com/questions/300674/getting-raw-soap-data-from-a-web-reference-client-running-in-asp-net">http://stackoverflow.com/questions/300674/getting-raw-soap-data-from-a-web-reference-client-running-in-asp-net

<一个href="http://stackoverflow.com/questions/381403/xml-parse-error-while-processing-the-soap-response">http://stackoverflow.com/questions/381403/xml-parse-error-while-processing-the-soap-response

其中的文章链接: <一href="http://msdn.microsoft.com/en-us/magazine/cc164007.aspx">http://msdn.microsoft.com/en-us/magazine/cc164007.aspx

另外搜索,以便为:<一href="http://stackoverflow.com/search?q=SoapExtension">http://stackoverflow.com/search?q=SoapExtension

这篇关于获取SOAP消息发送到web服务的.NET之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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