在ASP.net运行的Web客户端参考RAW获取数据肥皂 [英] Getting RAW Soap Data from a Web Reference Client running in ASP.net
问题描述
我想麻烦我当前的项目拍摄Web服务客户端。我不知道该服务服务器的平台(最有可能LAMP)的。我相信这是对他们的围栏边故障正如我与我的客户消除了潜在的问题。客户端是从服务的WSDL生成一个标准ASMX类型的Web引用代理汽车。
I'm trying to trouble shoot a web service client in my current project. I'm not sure of the platform of the Service Server (Most likely LAMP). I believe there is a fault on their side of the fence as i have eliminated the potential issues with my client. The client is a standard ASMX type web reference proxy auto generated from the service WSDL.
我需要得到的是RAW SOAP消息(请求和响应)
What I need to get to is the RAW SOAP Messages (Request and Responses)
什么是去最好的方法?
推荐答案
我作了如下的的web.config
来获得SOAP(请求/响应)信封的变化。这将输出所有的原始SOAP信息文件 trace.log的
。
I made following changes in web.config
to get the SOAP (Request/Response) Envelope. This will output all of the raw SOAP information to the file trace.log
.
<system.diagnostics>
<trace autoflush="true"/>
<sources>
<source name="System.Net" maxdatasize="1024">
<listeners>
<add name="TraceFile"/>
</listeners>
</source>
<source name="System.Net.Sockets" maxdatasize="1024">
<listeners>
<add name="TraceFile"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="TraceFile" type="System.Diagnostics.TextWriterTraceListener"
initializeData="trace.log"/>
</sharedListeners>
<switches>
<add name="System.Net" value="Verbose"/>
<add name="System.Net.Sockets" value="Verbose"/>
</switches>
</system.diagnostics>
这篇关于在ASP.net运行的Web客户端参考RAW获取数据肥皂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!