Redigera

Dela via


SoapHeaderHandling.WriteHeaders Method

Definition

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

writer
XmlWriter

The XmlWriter to be used in writing the headers.

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.

isEncoded
Boolean

A Boolean that indicates whether the SOAP headers are encoded.

defaultNS
String

A String that contains the default namespace for the XML Web service.

serviceDefaultIsEncoded
Boolean

A Boolean that indicates whether data sent to and from the XML Web service is encoded by default.

envelopeNS
String

A String that contains the namespace for the SOAP message envelope.

Applies to

See also