SoapBinding.Binding プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
XML Web サービスで実装されている SOAP バインディングの XML 限定名を取得または設定します。
public:
property System::Xml::XmlQualifiedName ^ Binding { System::Xml::XmlQualifiedName ^ get(); void set(System::Xml::XmlQualifiedName ^ value); };
public System.Xml.XmlQualifiedName Binding { get; set; }
member this.Binding : System.Xml.XmlQualifiedName with get, set
Public Property Binding As XmlQualifiedName
プロパティ値
XML Web サービスで実装されている SOAP バインディングの XmlQualifiedName。
例
// 'dataservice.disco' is a sample discovery document.
String^ myStringUrl = "http://localhost/dataservice.disco";
// Call the Discover method to populate the Documents property.
DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;
DiscoveryDocument^ myDiscoveryDocument = myDiscoveryClientProtocol->Discover( myStringUrl );
Console::WriteLine( "Demonstrating the Discovery::SoapBinding class." );
// Create a SOAP binding.
SoapBinding^ mySoapBinding = gcnew SoapBinding;
// Assign an address to the created SOAP binding.
mySoapBinding->Address = "http://schemas.xmlsoap.org/disco/scl/";
// Bind the created SOAP binding with a new XmlQualifiedName.
mySoapBinding->Binding = gcnew XmlQualifiedName( "String*","http://www.w3.org/2001/XMLSchema" );
// Add the created SOAP binding to the DiscoveryClientProtocol.
myDiscoveryClientProtocol->AdditionalInformation->Add( mySoapBinding );
// Display the namespace associated with SOAP binding.
Console::WriteLine( "Namespace associated with the SOAP binding is: {0}", SoapBinding::Namespace );
// Write all the information of the DiscoveryClientProtocol.
myDiscoveryClientProtocol->WriteAll( ".", "results.discomap" );
// 'dataservice.disco' is a sample discovery document.
string myStringUrl = "http://localhost/dataservice.disco";
// Call the Discover method to populate the Documents property.
DiscoveryClientProtocol myDiscoveryClientProtocol =
new DiscoveryClientProtocol();
myDiscoveryClientProtocol.Credentials =
CredentialCache.DefaultCredentials;
DiscoveryDocument myDiscoveryDocument =
myDiscoveryClientProtocol.Discover(myStringUrl);
Console.WriteLine("Demonstrating the Discovery.SoapBinding class.");
// Create a SOAP binding.
SoapBinding mySoapBinding = new SoapBinding();
// Assign an address to the created SOAP binding.
mySoapBinding.Address = "http://schemas.xmlsoap.org/disco/scl/";
// Bind the created SOAP binding with a new XmlQualifiedName.
mySoapBinding.Binding = new XmlQualifiedName("string",
"http://www.w3.org/2001/XMLSchema");
// Add the created SOAP binding to the DiscoveryClientProtocol.
myDiscoveryClientProtocol.AdditionalInformation.Add(mySoapBinding);
// Display the namespace associated with SOAP binding.
Console.WriteLine("Namespace associated with the SOAP binding is: "
+ SoapBinding.Namespace);
// Write all the information of the DiscoveryClientProtocol.
myDiscoveryClientProtocol.WriteAll(".","results.discomap");
' 'dataservice.disco' is a sample discovery document.
Dim myStringUrl As String = "http://localhost/dataservice.disco"
' Call the Discover method to populate the Documents property.
Dim myDiscoveryClientProtocol As DiscoveryClientProtocol = _
New DiscoveryClientProtocol()
myDiscoveryClientProtocol.Credentials = _
CredentialCache.DefaultCredentials
Dim myDiscoveryDocument As DiscoveryDocument = _
myDiscoveryClientProtocol.Discover(myStringUrl)
Console.WriteLine("Demonstrating the Discovery.SoapBinding class.")
' Create a SOAP binding.
Dim mySoapBinding As SoapBinding = New SoapBinding()
' Assign the address to the SOAP binding.
mySoapBinding.Address = "http://schemas.xmlsoap.org/disco/scl/"
' Bind the created SOAP binding with a new XmlQualifiedName.
mySoapBinding.Binding = New XmlQualifiedName("string", _
"http://www.w3.org/2001/XMLSchema")
' Add the created SOAP binding to the DiscoveryClientProtocol.
myDiscoveryClientProtocol.AdditionalInformation.Add(mySoapBinding)
' Display the namespace associated with the SOAP binding.
Console.WriteLine("Namespace associated with Soap Binding is: " _
+ SoapBinding.Namespace)
' Write all the information of the DiscoveryClientProtocol.
myDiscoveryClientProtocol.WriteAll(".","results.discomap")