2.2.3 SOAP ActivityId Header Block Syntax
To enable activity tracing, a special XML element called the SOAP ActivityId Header Block MUST be placed within the SOAP header of each message exchanged. The schema for this XML element is as follows.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"> <xsd:element name="ActivityId"> <xsd:complexType> <xsd:attribute name="CorrelationId" type="xsd:string" /> </xsd:complexType> </xsd:element> </xsd:schema>
There is no specific location for this XML element within the SOAP header.
ActivityId: Contains the name of the SOAP ActivityId Header Block. The value of this element is a GUID string. This value is used to correlate activity traces within the same unit of processing (for example, all activity traces generated for a request or a response, or for both request and response if a request-response message exchange pattern is used).
http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics: The qualifying namespace for the SOAP ActivityId Header Block.
CorrelationId: Attribute of type GUID string associated with the SOAP ActivityId Header Block. This attribute is used to relate the send and receive activity traces associated with one single message. For example, for a request message, the activity traces for send at the client and the corresponding receive at the server are correlated based on the CorrelationId. The send and receive messages associated with the response are associated with a different CorrelationId.