Udostępnij za pośrednictwem


SoapHeaderHandling.ReadHeaders Metoda

Definicja

Zwraca element String zawierający zawartość nagłówka SOAP komunikatu PROTOKOŁU SOAP.

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

Parametry

reader
XmlReader

Element XmlReader , który ma być używany podczas pisania nagłówków.

serializer
XmlSerializer

Element XmlSerializer do użycia w odczytywaniu nagłówków.

headers
SoapHeaderCollection

Element SoapHeaderCollection , który zawiera nagłówki PROTOKOŁU SOAP.

mappings
SoapHeaderMapping[]

Tablica typu SoapHeaderMapping zawierająca mapowania nagłówków protokołu SOAP.

direction
SoapHeaderDirection

SoapHeaderDirection Wartość wskazująca kierunek nagłówków PROTOKOŁU SOAP.

envelopeNS
String

Element String zawierający przestrzeń nazw koperty komunikatu PROTOKOŁU SOAP.

encodingStyle
String

Element String zawierający styl kodowania nagłówków PROTOKOŁU SOAP.

checkRequiredHeaders
Boolean

Element Boolean wskazujący, czy należy sprawdzić wymagane nagłówki protokołu SOAP.

Zwraca

Element String zawierający zawartość nagłówka protokołu SOAP komunikatu PROTOKOŁU SOAP.

Dotyczy

Zobacz też