System.Web.Services.Discovery.ContractSearchPattern.GetDiscoveryReference Method

Creates the System.Web.Services.Discovery.ContractReference object for the specified .asmx file.

Syntax

public override DiscoveryReference GetDiscoveryReference (string filename)

Parameters

filename
The file-system path of the Web service's .asmx file.

Returns

A System.Web.Services.Discovery.ContractReference object with the specified file name for its .asmx file.

Remarks

The concrete System.Web.Services.Discovery.ContractReference class inherits from the abstract System.Web.Services.Discovery.DiscoveryReference class.

A System.Web.Services.Discovery.ContractReference instance contains the location of the .asmx file and the corresponding Web Services Description Language (WSDL) document, which can be dynamically obtained by appending a wsdl query string to the .asmx file path.

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