SoapHeaderHandling.ReadHeaders 方法

定义

返回一个 String,其中包含 SOAP 消息的 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

参数

reader
XmlReader

用于编写标头的 XmlReader

serializer
XmlSerializer

用于读取标头的 XmlSerializer

headers
SoapHeaderCollection

包含 SOAP 标头的 SoapHeaderCollection

mappings
SoapHeaderMapping[]

一个类型为 SoapHeaderMapping 的数组,它包含 SOAP 标头的映射。

direction
SoapHeaderDirection

一个 SoapHeaderDirection 值,它指示 SOAP 标头的方向。

envelopeNS
String

包含 SOAP 消息信封的命名空间的 String

encodingStyle
String

一个 String,其中包含 SOAP 标头的编码样式。

checkRequiredHeaders
Boolean

一个 Boolean,它指示是否检查所需的 SOAP 标头。

返回

一个 String,其中包含 SOAP 消息的 SOAP 标头内容。

适用于

另请参阅