SoapRpcMethodAttribute.Binding Property

Gets or sets the binding that an XML Web service method implements an operation for.

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in system.web.services.dll)

public:
property String^ Binding {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_Binding ()

/** @property */
public void set_Binding (String value)

public function get Binding () : String

public function set Binding (value : String)

Not applicable.

Property Value

The binding an XML Web service method implements an operation for. The default is the name of the XML Web service with "Soap" appended.

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 ASP.NET, each XML Web service method is an operation within a binding. XML Web service methods are members of the default binding for an XML Web service or a binding specified within a WebServiceBindingAttribute applied to an XML Web service. An XML Web service can implement multiple bindings, if multiple WebServiceBindingAttribute attributes are applied to an XML Web service.

Once one or more WebServiceBindingAttribute attributes are applied to an XML Web service, a SoapDocumentMethodAttribute or 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 Binding property of SoapDocumentMethodAttribute or SoapRpcMethodAttribute to specify the binding an XML Web service method implements an operation for. Only one SoapDocumentMethodAttribute or SoapRpcMethodAttribute can be applied to an XML Web service method. Therefore, an XML Web service method can only implement an operation for one binding.

The following code example demonstrates how to implement multiple bindings within an XML Web service.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show: