SoapHeaderHandling.ReadHeaders 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个 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
参数
- serializer
- XmlSerializer
用于读取标头的 XmlSerializer。
- headers
- SoapHeaderCollection
包含 SOAP 标头的 SoapHeaderCollection。
- mappings
- SoapHeaderMapping[]
一个类型为 SoapHeaderMapping 的数组,它包含 SOAP 标头的映射。
- direction
- SoapHeaderDirection
一个 SoapHeaderDirection 值,它指示 SOAP 标头的方向。
返回
一个 String,其中包含 SOAP 消息的 SOAP 标头内容。