SoapMessage::Headers Property

 

A collection of the SOAP headers applied to the current SOAP request or SOAP response.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property SoapHeaderCollection^ Headers {
	SoapHeaderCollection^ get();
}

Property Value

Type: System.Web.Services.Protocols::SoapHeaderCollection^

A SoapHeaderCollection of the SOAP headers applied to the current SOAP request or SOAP response. null, if there are no SOAP headers.

SOAP headers are an optional portion of a SOAP request or SOAP response. For more details on using SOAP headers in XML Web services created using ASP.NET and their clients, see the SoapHeader class.

Although the Headers property can be accessed at any stage, it is only populated with the SOAP header information in the BeforeSerialize and AfterDeserialize stages.

.NET Framework
Available since 1.1
Return to top
Show: