4.2.4 Activity Trace Emitted for Reply Received at the Client

The following is a sample trace generated at the client end when the response message is received. 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>262165</EventID>
     <Type>3</Type>
     <SubType Name="Information">0</SubType>
     <Level>8</Level>
     <TimeCreated SystemTime="2008-02-08T17:23:57.8494098Z" />
     <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.RequestChannelReplyReceived.aspx</TraceIdentifier>
           <Description>Received reply over request channel</Description>
           <AppDomain>Client.exe</AppDomain>
           <Source>System.ServiceModel.Channels.BufferedMessage/43495525</Source>
           <ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTraceRecord">
             <MessageProperties>
               <Encoder>text/xml; charset=utf-8</Encoder>
               <AllowOutputBatching>False</AllowOutputBatching>
             </MessageProperties>
             <MessageHeaders>
               <ActivityId CorrelationId="b898336e-d4e2-4eb7-a2c7-1e23f4630646" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">43ffa660-a0c6-4249-bb36-648b73a06213</ActivityId>
             </MessageHeaders>
           </ExtendedData>
         </TraceRecord>
       </DataItem>
     </TraceData>
   </ApplicationData>
 </E2ETraceEvent>

The preceding four sample traces are correlated to each other because of the common ActivityId attribute value specified in the <Correlation> element ("{43ffa660-a0c6-4249-bb36-648b73a06213}"). The send and receive of the request message are correlated because of the common value ("7224e2a9-8f9c-4acb-a924-17cb6af67b23") of the CorrelationId attribute associated with SOAP ActivityId Header Block. The send and receive of the response message are correlated because of the common value ("b898336e-d4e2-4eb7-a2c7-1e23f4630646") of the CorrelationId attribute associated with SOAP ActivityId Header Block.