Edit

Share via


SoapHeaderHandling.ReadHeaders Method

Definition

Returns a String that contains the SOAP header content of the SOAP message.

public:
 System::String ^ ReadHeaders(System::Xml::XmlReader ^ reader, 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, System::String ^ envelopeNS, System::String ^ encodingStyle, bool checkRequiredHeaders);
public string ReadHeaders (System.Xml.XmlReader reader, System.Xml.Serialization.XmlSerializer serializer, System.Web.Services.Protocols.SoapHeaderCollection headers, System.Web.Services.Protocols.SoapHeaderMapping[] mappings, System.Web.Services.Protocols.SoapHeaderDirection direction, string envelopeNS, string encodingStyle, bool checkRequiredHeaders);
member this.ReadHeaders : System.Xml.XmlReader * System.Xml.Serialization.XmlSerializer * System.Web.Services.Protocols.SoapHeaderCollection * System.Web.Services.Protocols.SoapHeaderMapping[] * System.Web.Services.Protocols.SoapHeaderDirection * string * string * bool -> string
Public Function ReadHeaders (reader As XmlReader, serializer As XmlSerializer, headers As SoapHeaderCollection, mappings As SoapHeaderMapping(), direction As SoapHeaderDirection, envelopeNS As String, encodingStyle As String, checkRequiredHeaders As Boolean) As String

Parameters

reader
XmlReader

The XmlReader to be used in writing the headers.

serializer
XmlSerializer

The XmlSerializer to be used in reading the headers.

headers
SoapHeaderCollection

The SoapHeaderCollection that contains the SOAP headers.

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.

envelopeNS
String

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

encodingStyle
String

A String that contains the encoding style for the SOAP headers.

checkRequiredHeaders
Boolean

A Boolean that indicates whether to check for the required SOAP headers.

Returns

A String that contains the SOAP header content of the SOAP message.

Applies to

See also