SoapHeaderHandling.WriteHeaders Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the specified SOAP header content to the SOAP message.
public:
static void WriteHeaders(System::Xml::XmlWriter ^ writer, System::Xml::Serialization::XmlSerializer ^ serializer, System::Web::Services::Protocols::SoapHeaderCollection ^ headers, cli::array <System::Web::Services::Protocols::SoapHeaderMapping ^> ^ mappings, System::Web::Services::Protocols::SoapHeaderDirection direction, bool isEncoded, System::String ^ defaultNS, bool serviceDefaultIsEncoded, System::String ^ envelopeNS);
public static void WriteHeaders (System.Xml.XmlWriter writer, System.Xml.Serialization.XmlSerializer serializer, System.Web.Services.Protocols.SoapHeaderCollection headers, System.Web.Services.Protocols.SoapHeaderMapping[] mappings, System.Web.Services.Protocols.SoapHeaderDirection direction, bool isEncoded, string defaultNS, bool serviceDefaultIsEncoded, string envelopeNS);
static member WriteHeaders : System.Xml.XmlWriter * System.Xml.Serialization.XmlSerializer * System.Web.Services.Protocols.SoapHeaderCollection * System.Web.Services.Protocols.SoapHeaderMapping[] * System.Web.Services.Protocols.SoapHeaderDirection * bool * string * bool * string -> unit
Public Shared Sub WriteHeaders (writer As XmlWriter, serializer As XmlSerializer, headers As SoapHeaderCollection, mappings As SoapHeaderMapping(), direction As SoapHeaderDirection, isEncoded As Boolean, defaultNS As String, serviceDefaultIsEncoded As Boolean, envelopeNS As String)
Parameters
- serializer
- XmlSerializer
The XmlSerializer to be used in writing the headers.
- headers
- SoapHeaderCollection
The SoapHeaderCollection that contains the SOAP headers to be written.
- mappings
- SoapHeaderMapping[]
An array of type SoapHeaderMapping that contains the mappings for the SOAP headers.
- direction
- SoapHeaderDirection
A SoapHeaderDirection value that indicates the direction of the SOAP headers.
- serviceDefaultIsEncoded
- Boolean
A Boolean that indicates whether data sent to and from the XML Web service is encoded by default.