SoapWebRequest.Headers Property
Gets the collection of HTTP headers associated with the SOAP request.
Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim soapWebRequest1 As SoapWebRequest
Dim returnValue As WebHeaderCollection
returnValue = soapWebRequest1.Headers
Syntax
'Declaration
Public Overrides ReadOnly Property Headers() As WebHeaderCollection
public override WebHeaderCollection Headers {get;}
public: property virtual WebHeaderCollection^ Headers{
WebHeaderCollection^ get();
}
public WebHeaderCollection get_Headers();
public override function get Headers() : WebHeaderCollection;
Property Value
A System.Net.WebHeaderCollection containing the HTTP headers associated with the SOAP request.
Remarks
The Headers collection contains the HTTP headers associated with the request, not the SOAP headers. The following table lists the HTTP headers that are not accessed through the Headers property but are either set by the system or accessed by other properties.
Header |
Access |
Content-Length |
The System.Net.WebRequest.ContentLength property of the System.Net.WebRequest class. |
Content-Type |
The System.Net.HttpWebRequest.ContentType property of the System.Net.HttpWebRequest class. |
Date |
Set by the system to the current date. |
Host |
Set by the system to the current host. |
Transfer-Encoding |
The System.Net.HttpWebRequest.TransferEncoding property of the System.Net.HttpWebRequest class. |
User-Agent |
The System.Net.HttpWebRequest.UserAgent property of the System.Net.HttpWebRequest class. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
SoapWebRequest Class
Microsoft.Web.Services2 Namespace