This documentation is archived and is not being maintained.
DiscoveryClientProtocol::AdditionalInformation Property
Visual Studio 2010
Gets information in addition to references found in the discovery document.
Assembly: System.Web.Services (in System.Web.Services.dll)
The AdditionalInformation property primarily contains SOAP bindings, represented by the SoapBinding class, defined in the discovery document.
#using <System.dll> #using <System.Xml.dll> #using <System.Web.Services.dll> using namespace System; using namespace System::Net; using namespace System::Xml; using namespace System::Web::Services::Discovery; int main() { try { // 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; myDiscoveryClientProtocol->Discover( myStringUrl ); SoapBinding^ mySoapBinding = gcnew SoapBinding; mySoapBinding->Address = "http://schemas.xmlsoap.org/disco/scl/"; mySoapBinding->Binding = gcnew XmlQualifiedName( "String*","http://www.w3.org/2001/XMLSchema" ); myDiscoveryClientProtocol->AdditionalInformation->Add( mySoapBinding ); // Write the information back. myDiscoveryClientProtocol->WriteAll( "MyDirectory", "results.discomap" ); System::Collections::IList^ myIList = myDiscoveryClientProtocol->AdditionalInformation; mySoapBinding = nullptr; mySoapBinding = dynamic_cast<SoapBinding^>(myIList[ 0 ]); Console::WriteLine( "The address of the SoapBinding associated with " "AdditionalInformation is: {0}", mySoapBinding->Address ); } catch ( Exception^ e ) { Console::WriteLine( e ); } }
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: