ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources]

G. andrew Duthie; matthew Macdonald

نسخه متنی -صفحه : 873/ 316
نمايش فراداده

ContractReference

System.Web.Services.Discovery (system.web.services.dll)class

This class represents a discovery document reference to a WSDL service description. This is the most common type of reference in a discovery document and the most useful, as it directly corresponds to a web service that the client can consume. The Contract property returns the System.Web.Services.Description.ServiceDescription object that represents the service description. Ref provides the URL to the WSDL document as a string, while DocRef provides the URL to the web service that the WSDL document describes.

public class 

ContractReference : DiscoveryReference { // Public Constructors public

ContractReference ( ); public

ContractReference (string

href ); public

ContractReference (string

href , string

docRef ); // Public Static Fields public const string

Namespace ; // =http://schemas.xmlsoap.org/disco/scl/ // Public Instance Properties public ServiceDescription

Contract {get; } public override string

DefaultFilename {get; } // overrides DiscoveryReference public string

DocRef {set; get; } public string

Ref {set; get; } public override string

Url {set; get; } // overrides DiscoveryReference // Public Instance Methods public override object

ReadDocument (System.IO.Stream

stream ); // overrides DiscoveryReference public override void

WriteDocument (object

document , System.IO.Stream

stream ); // overrides DiscoveryReference // Protected Instance Methods protected internal override void

Resolve (string

contentType , System.IO.Stream

stream ); // overrides DiscoveryReference }

Hierarchy

System.Object DiscoveryReference ContractReference