This documentation is archived and is not being maintained.
SoapBinding::Address Property
Visual Studio 2010
Gets or sets the URL of the XML Web service implementing the SOAP binding.
Assembly: System.Web.Services (in System.Web.Services.dll)
// '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 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: