Getting RAW Soap Data from a Web Reference Client running in ASP.net

Posted: July 23, 2011 in Asp.net

Make the  following changes in web.cofig to get SOAP(Request/Response) Envelope. It makes trace.log file where all the required information are present

<system.diagnostics>
<trace autoflush=”true”/>
<sources>
  <source name=”System.Net” >
    <listeners>
      <add name=”TraceFile”/>
    </listeners>
  </source>
  <source name=”System.Net.Sockets”>
    <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>

Advertisements
Comments
  1. hirenpatels says:

    Great stuff.. Buddy keep continue…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s