DiscoveryClientProtocol.AdditionalInformation Property

Gets information in addition to references found in the discovery document.

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

public:
property IList^ AdditionalInformation {
	IList^ get ();
}
/** @property */
public IList get_AdditionalInformation ()

public function get AdditionalInformation () : IList

Not applicable.

Property Value

An IList containing additional information found in the discovery document.

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 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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: