System.Web.Services.Discovery.DiscoveryClientProtocol.DiscoverAny Method

Discovers the supplied URL to determine if it is a discovery document, service description or an XML Schema Definition (XSD) schema.

Syntax

public DiscoveryDocument DiscoverAny (string url)

Parameters

url
The URL where XML Web services discovery begins.

Returns

A System.Web.Services.Discovery.DiscoveryDocument containing the results of XML Web services discovery at the supplied URL. If the url parameter refers to a service description or an XSD Schema, a System.Web.Services.Discovery.DiscoveryDocument is created in memory for it.

Remarks

The DiscoveryClientProtocol.DiscoverAny(string) method discovers whether the supplied URL is a discovery document, service description or XSD schema. If it is known that the URL only refers to a discovery document, the DiscoveryClientProtocol.Discover(string) method might be invoked.

If the supplied URL points to a valid discovery document, XSD schema, or service description, the discovery document at the supplied URL is added to the DiscoveryClientProtocol.Documents and DiscoveryClientProtocol.References collections. When the supplied URL refers to an XSD schema or Service Description a System.Web.Services.Discovery.DiscoveryDocument is created in memory and added to the DiscoveryClientProtocol.Documents and DiscoveryClientProtocol.References collections. Additionally, references within the discovery document are added to the DiscoveryClientProtocol.References collection, but not verified to point to valid discovery documents. To verify that references point to valid discovery documents, invoke the DiscoveryClientProtocol.ResolveAll or DiscoveryClientProtocol.ResolveOneLevel methods.

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