SoapBinding.Transport プロパティ
SOAP データの HTTP 伝送に関する仕様を示す URI を取得または設定します。
Public Property Transport As String
[C#]
public string Transport {get; set;}
[C++]
public: __property String* get_Transport();public: __property void set_Transport(String*);
[JScript]
public function get Transport() : String;public function set Transport(String);
プロパティ値
SOAP によるデータ伝送の仕様を示す URI を表す文字列値。既定値は空の文字列 ("") です。
解説
ここで必要なプロパティ値は、通常は HttpTransport フィールドのプロパティ値と同じ値です。ただしこのプロパティ値には、SMTP または FTP などのデータ伝送に関する仕様を示すどの URI でも指定できます。
使用例
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding)
[C#]
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding);
[C++]
SoapBinding* mySoapBinding = new SoapBinding();
mySoapBinding->Transport = S"https://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add(mySoapBinding);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
SoapBinding クラス | SoapBinding メンバ | System.Web.Services.Description 名前空間