System.Web.Services.Protocols.SoapHeaderHandling.WriteHeaders Method

Writes the specified SOAP header content to the SOAP message.

Syntax

public static void WriteHeaders (System.Xml.XmlWriter writer, System.Xml.Serialization.XmlSerializer serializer, SoapHeaderCollection headers, SoapHeaderMapping[] mappings, SoapHeaderDirection direction, bool isEncoded, string defaultNS, bool serviceDefaultIsEncoded, string envelopeNS)

Parameters

writer
The System.Xml.XmlWriter to be used in writing the headers.
serializer
The System.Xml.Serialization.XmlSerializer to be used in writing the headers.
headers
The System.Web.Services.Protocols.SoapHeaderCollection that contains the SOAP headers to be written.
mappings
An array of type System.Web.Services.Protocols.SoapHeaderMapping that contains the mappings for the SOAP headers.
direction
A System.Web.Services.Protocols.SoapHeaderDirection value that indicates the direction of the SOAP headers.
isEncoded
A bool that indicates whether the SOAP headers are encoded.
defaultNS
A string that contains the default namespace for the XML Web service.
serviceDefaultIsEncoded
A bool that indicates whether data sent to and from the XML Web service is encoded by default.
envelopeNS
A string that contains the namespace for the SOAP message envelope.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0