This documentation is archived and is not being maintained.

SoapBinding::Address Property

Gets or sets the URL of the XML Web service implementing the SOAP binding.

Namespace:  System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property String^ Address {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: System::String
The URL of the XML Web service implementing the SOAP binding. The default value is Empty.


// '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" );



.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: