SoapHeaderHandling.ReadHeaders 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.
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
- 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.
- 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.