次の方法で共有


SoapBodyBinding.Namespace プロパティ

Encoding プロパティで特に定義されていない内容のエンコーディングについて記述された仕様の配置場所を表す URI を取得または設定します。

Public Property Namespace As String
[C#]
public string Namespace {get; set;}
[C++]
public: __property String* get_Namespace();public: __property void set_Namespace(String*);
[JScript]
public function get Namespace() : String;public function set Namespace(String);

プロパティ値

URI を含んでいる文字列。

解説

このプロパティは、値が設定されていない場合は空の文字列 ("") を返します。このプロパティの値は、 Use プロパティの値が Encoded の場合にだけ設定する必要があります。それ以外の場合、このプロパティ値は無視され、XML Web サービスは予測不可能な動作を示します。

使用例

 
Dim mySoapBodyBinding As New SoapBodyBinding()
' Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded
' Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding = "https://schemas.xmlsoap.org/soap/encoding/"
' Set the Uri representing the location of the specification 
' for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace = "http://tempuri.org/soapsvcmgr/"
myInputBinding.Extensions.Add(mySoapBodyBinding)

[C#] 
SoapBodyBinding mySoapBodyBinding = new SoapBodyBinding();
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding="https://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification 
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace="http://tempuri.org/soapsvcmgr/";
myInputBinding.Extensions.Add(mySoapBodyBinding);

[C++] 
SoapBodyBinding* mySoapBodyBinding = new SoapBodyBinding();
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding->Use = SoapBindingUse::Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding->Encoding=S"https://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding->Namespace=S"http://tempuri.org/soapsvcmgr/";
myInputBinding->Extensions->Add(mySoapBodyBinding);

[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 ファミリ

参照

SoapBodyBinding クラス | SoapBodyBinding メンバ | System.Web.Services.Description 名前空間