Share via


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

書き込まれる SOAP ヘッダーを格納している SoapHeaderCollection

mappings
SoapHeaderMapping[]

SOAP ヘッダーのマップを格納している SoapHeaderMapping 型の配列。

direction
SoapHeaderDirection

SOAP ヘッダーの方向を示す SoapHeaderDirection 値。

isEncoded
Boolean

SOAP ヘッダーがエンコードされるかどうかを示す Boolean

defaultNS
String

XML Web サービスの既定の名前空間を格納している String

serviceDefaultIsEncoded
Boolean

XML Web サービス間で送受信されるデータが既定でエンコードされるかどうかを示す Boolean

envelopeNS
String

SOAP メッセージ エンベロープの名前空間を格納している String

適用対象

こちらもご覧ください