Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to intercept raw soap request/response (data) from WCF client
    text
    copied!<p><a href="https://stackoverflow.com/questions/2292868/can-i-view-the-raw-request-made-by-soap-wcf-call">This question</a> seems to be pretty close to what I am looking for - I was able to setup tracing and I am looking at the log entries for my calls to the service.</p> <p>However I need to see the raw soap request with the data I am sending to the service and I see no way of doing that from the SvcTraceViewer (only log entries are shown but no data sent to the service) - am I just missing configuration?</p> <p>Here's what I got in my web.config:</p> <pre><code> &lt;system.diagnostics&gt; &lt;sources&gt; &lt;source name="System.ServiceModel" switchValue="Verbose" propagateActivity="true"&gt; &lt;listeners&gt; &lt;add name="sdt" type="System.Diagnostics.XmlWriterTraceListener" initializeData="App_Data/Logs/WCFTrace.svclog" /&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;/sources&gt; &lt;/system.diagnostics&gt; </code></pre> <p>Any help appreciated!</p> <p><strong>UPDATE</strong>: this is all I see in my trace:</p> <pre><code>&lt;E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt; &lt;System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt; &lt;EventID&gt;262163&lt;/EventID&gt; &lt;Type&gt;3&lt;/Type&gt; &lt;SubType Name="Information"&gt;0&lt;/SubType&gt; &lt;Level&gt;8&lt;/Level&gt; &lt;TimeCreated SystemTime="2010-05-10T13:10:46.6713553Z" /&gt; &lt;Source Name="System.ServiceModel" /&gt; &lt;Correlation ActivityID="{00000000-0000-0000-1501-0080000000f6}" /&gt; &lt;Execution ProcessName="w3wp" ProcessID="3492" ThreadID="23" /&gt; &lt;Channel /&gt; &lt;Computer&gt;MY_COMPUTER_NAME&lt;/Computer&gt; &lt;/System&gt; &lt;ApplicationData&gt; &lt;TraceData&gt; &lt;DataItem&gt; &lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"&gt; &lt;TraceIdentifier&gt;http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.MessageSent.aspx&lt;/TraceIdentifier&gt; &lt;Description&gt;Sent a message over a channel.&lt;/Description&gt; &lt;AppDomain&gt;MY_DOMAIN&lt;/AppDomain&gt; &lt;Source&gt;System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput/50416815&lt;/Source&gt; &lt;ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTraceRecord"&gt; &lt;MessageProperties&gt; &lt;Encoder&gt;text/xml; charset=utf-8&lt;/Encoder&gt; &lt;AllowOutputBatching&gt;False&lt;/AllowOutputBatching&gt; &lt;Via&gt;http://xxx.xx.xxx.xxx:9080/MyWebService/myService&lt;/Via&gt; &lt;/MessageProperties&gt; &lt;MessageHeaders&gt;&lt;/MessageHeaders&gt; &lt;/ExtendedData&gt; &lt;/TraceRecord&gt; &lt;/DataItem&gt; &lt;/TraceData&gt; &lt;/ApplicationData&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload