This documentation is archived and is not being maintained.

SoapMessage.Headers Property

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

[Visual Basic]
Public ReadOnly Property Headers As SoapHeaderCollection
[C#]
public SoapHeaderCollection Headers {get;}
[C++]
public: __property SoapHeaderCollection* get_Headers();
[JScript]
public function get Headers() : SoapHeaderCollection;

Property Value

A SoapHeaderCollection of the SOAP headers applied to the current SOAP request or SOAP response. A null reference (Nothing in Visual Basic), if there are no SOAP headers.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SoapMessage Class | SoapMessage Members | System.Web.Services.Protocols Namespace

Show: