SoapBinding.Binding Property
.NET Framework 2.0
Gets or sets the XML qualified name of the SOAP binding implemented by the XML Web service.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: property XmlQualifiedName^ Binding { XmlQualifiedName^ get (); void set (XmlQualifiedName^ value); }
/** @property */ public XmlQualifiedName get_Binding () /** @property */ public void set_Binding (XmlQualifiedName value)
public function get Binding () : XmlQualifiedName public function set Binding (value : XmlQualifiedName)
Not applicable.
Property Value
The XmlQualifiedName of the SOAP binding implemented by the XML Web service.// '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" );
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: