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

G. andrew Duthie; matthew Macdonald

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

Binding

System.Web.Services.Description (system.web.services.dll)sealed class

A WSDL document defines abstract information for data types, messages, and operations. A binding bridges the gap between abstract, protocol-independent information, and the encoding of that information (the concrete physical representation of messages on the wire). The Binding class represents the WSDL <binding> element, which provides binding information for a single protocol. For example, the WSDL document ASP.NET generates for a web service called StockQuotes would have three bindings: StockQuotesHttpGet, StockQuotesHttpPost, and StockQuotesSoap.

A Binding contains a collection of OperationBinding objects (provided through the Operations property). Bindings must define WSDL ports (represented by the Port class).

public sealed class 

Binding : DocumentableItem { // Public Constructors public

Binding ( ); // Public Instance Properties public ServiceDescriptionFormatExtensionCollection

Extensions {get; } public string

Name {set; get; } public OperationBindingCollection

Operations {get; } public ServiceDescription

ServiceDescription {get; } public XmlQualifiedName

Type {set; get; } }

Hierarchy

System.Object DocumentableItem Binding

Returned By

BindingCollection.this, OperationBinding.Binding, ProtocolImporter.Binding, ProtocolReflector.Binding, ServiceDescriptionCollection.GetBinding( )

Passed To

BindingCollection.{Add( ), Contains( ), CopyTo( ), IndexOf( ), Insert( ), Remove( ), this}