4.2.1 Activity Trace Emitted for Request Sent at the Client

The following is a sample trace generated at the client end when sending a request message. The ActivityId attribute associated with the XML element <Correlation> is the same as specified in the message samples discussed earlier ("43ffa660-a0c6-4249-bb36-648b73a06213"). The SOAP ActivityId Header Block associated with the request message is also part of the trace. Other parts of the sample trace will not be discussed and are not relevant to this example.

 <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
   <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
     <EventID>262164</EventID>
     <Type>3</Type>
     <SubType Name="Information">0</SubType>
     <Level>8</Level>
     <TimeCreated SystemTime="2008-02-08T17:23:54.0057336Z" />
     <Source Name="System.ServiceModel" />
     <Correlation ActivityID="{43ffa660-a0c6-4249-bb36-648b73a06213}" />
     <Execution ProcessName="Client" ProcessID="7604" ThreadID="1" />
     <Channel/>
     <Computer>MACHINE1</Computer>
   </System>
   <ApplicationData>
     <TraceData>
       <DataItem>
         <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information">
           <TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.MessageSent.aspx</TraceIdentifier>
           <Description>Sent a message over a channel.</Description>
           <AppDomain>Client.exe</AppDomain>
           <Source>System.ServiceModel.Channels.HttpOutput+WebRequestHttpOutput/34948909</Source>
           <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTraceRecord">
             <MessageProperties>
               <Encoder>text/xml; charset=utf-8</Encoder>
               <AllowOutputBatching>False</AllowOutputBatching>
               <Via>http://localhost/MySample/service.svc/basic</Via>
             </MessageProperties>
             <MessageHeaders>
               <ActivityId CorrelationId="7224e2a9-8f9c-4acb-a924-17cb6af67b23" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">43ffa660-a0c6-4249-bb36-648b73a06213</ActivityId>
             </MessageHeaders>
           </ExtendedData>
         </TraceRecord>
       </DataItem>
     </TraceData>
   </ApplicationData>
 </E2ETraceEvent>