SoapHeaderHandling.WriteHeaders 方法

定义

将指定的 SOAP 标头内容写入 SOAP 消息。

public:
 static void WriteHeaders(System::Xml::XmlWriter ^ writer, 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, bool isEncoded, System::String ^ defaultNS, bool serviceDefaultIsEncoded, System::String ^ envelopeNS);
public static void WriteHeaders(System.Xml.XmlWriter writer, System.Xml.Serialization.XmlSerializer serializer, System.Web.Services.Protocols.SoapHeaderCollection headers, System.Web.Services.Protocols.SoapHeaderMapping[] mappings, System.Web.Services.Protocols.SoapHeaderDirection direction, bool isEncoded, string defaultNS, bool serviceDefaultIsEncoded, string envelopeNS);
static member WriteHeaders : System.Xml.XmlWriter * System.Xml.Serialization.XmlSerializer * System.Web.Services.Protocols.SoapHeaderCollection * System.Web.Services.Protocols.SoapHeaderMapping[] * System.Web.Services.Protocols.SoapHeaderDirection * bool * string * bool * string -> unit
Public Shared Sub WriteHeaders (writer As XmlWriter, serializer As XmlSerializer, headers As SoapHeaderCollection, mappings As SoapHeaderMapping(), direction As SoapHeaderDirection, isEncoded As Boolean, defaultNS As String, serviceDefaultIsEncoded As Boolean, envelopeNS As String)

参数

writer
XmlWriter

XmlWriter用于写入标头。

serializer
XmlSerializer

XmlSerializer用于写入标头。

headers
SoapHeaderCollection

SoapHeaderCollection包含要写入的 SOAP 标头。

mappings
SoapHeaderMapping[]

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

direction
SoapHeaderDirection

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

isEncoded
Boolean

指示 SOAP 标头是否编码的 A Boolean

defaultNS
String

包含 XML Web 服务的默认命名空间的 A String

serviceDefaultIsEncoded
Boolean

指示 Boolean 默认情况下是否对发送到 XML Web 服务的数据进行编码。

envelopeNS
String

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

适用于

另请参阅