System.Web.Services.Protocols.SoapDocumentMethodAttribute.Binding Property

Gets or sets the binding an XML Web service method is implementing an operation for.

Syntax

public string Binding { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

A binding, as defined by Web Services Description Language (WSDL), is similar to an interface in that it defines a concrete set of operations. With respect to XML Web services created using ASP.NET, each XML Web service method is an operation within a binding. XML Web service methods are members of either the default binding for an XML Web service or a binding specified within a System.Web.Services.WebServiceBindingAttribute applied to an XML Web service. An XML Web service can implement multiple bindings when multiple System.Web.Services.WebServiceBindingAttribute attributes are applied to an XML Web service.

Once one or more System.Web.Services.WebServiceBindingAttribute attributes are applied to an XML Web service, a System.Web.Services.Protocols.SoapDocumentMethodAttribute or System.Web.Services.Protocols.SoapRpcMethodAttribute can be applied to individual XML Web service methods to indicate the binding operation implemented by a particular XML Web service method. Set the SoapDocumentMethodAttribute.Binding property of System.Web.Services.Protocols.SoapDocumentMethodAttribute or System.Web.Services.Protocols.SoapRpcMethodAttribute to specify the binding an XML Web service method is implementing an operation for. Only one System.Web.Services.Protocols.SoapDocumentMethodAttribute or System.Web.Services.Protocols.SoapRpcMethodAttribute can be applied to an XML Web service method. Therefore, an XML Web service method can only implement an operation for one binding.

For more information on the WSDL specification, see the W3C Web site (http://www.w3.org/TR/wsdl).

Requirements

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