How do I set up the TraceSoapRequest library logging tool and enable TraceSoap?

Can I get the library and instructions on how to set up my environment to use TraceSOAPRequest?

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    John Lafauce

    Hi Derek,

    The TraceSoapRequest library is a logging tool that can be used in conjunction with the WSDL plug-in.  This tool will write the full SOAP/XML request and response to the server logs.  To set up the TraceSoapRequest library, follow these steps:

    1. Copy the library to the server's bin directory (IE C:\inetpub\wwroot\PyxisServer\bin\).  If you do not have library, please ask someone from the server team.
    2. Add the following block to the server's web.config file in the <System.Web> node:

      <webServices>
          <soapExtensionTypes>
             <add type="TraceSOAPRequest.TraceSOAP, TraceSOAPRequest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
                priority="1"
                group="0"/>
          </soapExtensionTypes>
       </webServices>
    3. Run a request through the WSDL plug-in either through the test page or from a client.  You will now see SOAP requests and responses in the server logs.  
    4. If you prefer to have log entries in a separate text file, add the following to the <AppSettings> node of the server's Web.Config file:

      <add key="SOAPLogs" value="[your desired soap log directory]" />
    5. To disable logging, simply remove or comment out the <soapExtensionTypes> block added in step 2. 

    Thanks,

    John
  • 0
    Avatar
    Derek Morrocco

    Hi John,

    I'm just experimenting with this now, and I don't have the TraceSoapRequest library.  Who should I ask to get the library files ?  I don't know anyone on your server team.

  • 0
    Avatar
    John Lafauce

    Hi Derek,

    Instructions on how to enable SOAP tracing are described below, and the SOAP.dll is attached. It is recommended to use Fiddler as a proxy to capture SOAP requests and responses.

    Summary:

    Trace Soap allows WSDL request/response XML documents to be saved to a DB or a file. This is very useful while debugging complex WSDL issues. The TraceSOAPRequest library allows the Pyxis (Verivo) system to write to a log the full SOAP request sent and response received from the enterprise web service. If you want it written to a files system, make sure the ASP.NET worker process and any IIS user accounts have write access to the log folder.  In order for it to function property, the following steps should be performed:

    1.            Copy the library into the Pyxis Application Servers bin directory

                                    (e.g. c:\inetpub\wwwroot\PyxisServer\bin\)

    2.            Add the following block to the <system.web/> node in the web.config

                                    file

     

        <webServices>

          <soapExtensionTypes>

            <add type="TraceSOAPRequest.TraceSOAP, TraceSOAPRequest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"

                priority="1"

                group="0"/>

          </soapExtensionTypes>

        </webServices>

     

    3.            If you want to log the entries to the Pyxis database log table,

                                    you are now ready to query the server from the client.  Any

                                    requests and responses will be written to the Pyxis database.

    3.            If you want to log the entries to a local file, add the following

                                    key/value pair to the <appSettings/> node of the web.config

     

                                        <add key="SOAPLogs" value="C:\Logs\" />

                                       

                                    replacing the path with the path to the directory in which you

                                    want the logs written.

    4.            To disable logging, simply remove or comment out the

                                    <soapExtensionTypes/> block in the web.config.

    Thanks,

    John




    TraceSOAPRequest.dll
Please sign in to leave a comment.
Powered by Zendesk