DiscoveryClientProtocol::AdditionalInformation Property
.NET Framework (current version)
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 ); } }
.NET Framework
Available since 1.1
Available since 1.1
Show: