How to trace Soap Message sent from .Net client

Hello,

I am working on .Net Web Service Client to consume a Java Axis Web Service from the third party. For debuging purpose, I would like to get soap message being created by .Net Proxy Class. Can anybody tell me how to get the information

Many Thanks in advance.

-Qing


Answer this question

How to trace Soap Message sent from .Net client

  • johnconstantine

    if you are using .NEt 2.0, then you can enable loggin by having the following config in your app.exe.config file or web.config file


    <configuration>
        <system.diagnostics>
            <sources>
                <source name="System.Net">
                    <listeners>
                        <add name="System.Net"/>
                    </listeners>
                </source>
                <source name="System.Net.Sockets">
                    <listeners>
                        <add name="System.Net"/>
                    </listeners>
                </source>
            </sources>
            <switches>
                <add name="System.Net" value="Verbose" />
                <add name="System.Net.Sockets" value="Verbose" />
            </switches>
            <sharedListeners>
                <add name="System.Net"
                    type="System.Diagnostics.TextWriterTraceListener"
                    initializeData="System.Net.log"
                    />
            </sharedListeners>
            <trace autoflush="true" />
        </system.diagnostics>
    </configuration>

    If you are using 1.1 verison then you can capture the log by using a network capture tool like netmon



  • How to trace Soap Message sent from .Net client