This documentation is archived and is not being maintained.

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 Value

Type: System.Collections::IList
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 );
   }
}
#using <mscorlib.dll>
#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 = S"http://localhost/dataservice.disco";

        // Call the Discover method to populate the Documents property.
        DiscoveryClientProtocol* myDiscoveryClientProtocol = 
            new DiscoveryClientProtocol();
        myDiscoveryClientProtocol->Credentials = 
            CredentialCache::DefaultCredentials;
        myDiscoveryClientProtocol->Discover(myStringUrl);

        SoapBinding* mySoapBinding = new SoapBinding();
        mySoapBinding -> Address = S"http://schemas.xmlsoap.org/disco/scl/";
        mySoapBinding -> Binding = new XmlQualifiedName(S"String*", 
            S"http://www.w3.org/2001/XMLSchema");
        myDiscoveryClientProtocol->AdditionalInformation->Add(mySoapBinding);

        // Write the information back.
        myDiscoveryClientProtocol->WriteAll(S"MyDirectory", 
            S"results.discomap");

        System::Collections::IList* myIList = 
            myDiscoveryClientProtocol->AdditionalInformation;
        mySoapBinding = 0;
        mySoapBinding = dynamic_cast<SoapBinding*>(myIList -> Item[0]);
        Console::WriteLine(S"The address of the SoapBinding associated with " 
            S"AdditionalInformation is: {0}", mySoapBinding -> Address);
    } 
    catch (Exception* e) 
    {
        Console::WriteLine(e);
    }
}

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

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