This documentation is archived and is not being maintained.

SoapDocumentMethodAttribute::Binding Property

Gets or sets the binding an XML Web service method is implementing 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 Value

Type: System::String
The binding an XML Web service method is implementing 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 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 WebServiceBindingAttribute applied to an XML Web service. An XML Web service can implement multiple bindings when 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 is implementing 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.

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

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

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0
Show: