System.Web.Services.Discovery.DiscoveryClientProtocol.ReadAll Method

Reads in a file containing a map of saved discovery documents populating the DiscoveryClientProtocol.Documents and DiscoveryClientProtocol.References properties, with discovery documents, XML Schema Definition (XSD) schemas, and service descriptions referenced in the file.

Syntax

public DiscoveryClientResultCollection ReadAll (string topLevelFilename)

Parameters

topLevelFilename
Name of file to read in, containing the map of saved discovery documents.

Returns

A System.Web.Services.Discovery.DiscoveryClientResultCollection containing the results found in the file with the map of saved discovery documents. The file format is a System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoveryClientResultsFile class serialized into XML; however, one would typically create the file using only the DiscoveryClientProtocol.WriteAll(string, string) method or Disco.exe.

Remarks

A file containing a map of saved discovery documents can be created by the DiscoveryClientProtocol.WriteAll(string, string) method or Disco.exe.

The topLevelFilename parameter must include the fully qualified path if the file does not exist in the current directory.

Requirements

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0