Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save miklund/91060945379b95c3df62 to your computer and use it in GitHub Desktop.

Select an option

Save miklund/91060945379b95c3df62 to your computer and use it in GitHub Desktop.
2011-11-02 Debug SOAP request and response in WCF
# Title: Debug SOAP request and response in WCF
# Author: Mikael Lundin
# Link: http://localhost:4000/2011/11/02/debug-soap-request-and-response-in-wcf.html
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<sources>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="xml"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="Traces.svclog" />
</sharedListeners>
</system.diagnostics>
<system.serviceModel>
<diagnostics wmiProviderEnabled="true">
<messageLogging
logEntireMessage="true"
logMalformedMessages="true"
logMessagesAtServiceLevel="true"
logMessagesAtTransportLevel="true"
maxMessagesToLog="3000"
/>
</diagnostics>
</system.serviceModel>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment