Language

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 。

適用対象

こちらもご覧ください