Name
WebServiceBindingAttribute
Synopsis
This attribute is used to mark the class declaration of the proxy class
that allows communication between a client and a web service. It
defines a Web Service Description Language (WSDL) binding. The Name
and the Namespace
properties must be set to the name and XML namespace of the Web
Service. An example is <WebServiceBinding(Name := "StockQuote"
, Namespace := "http://www.mysite.com/MyServices")>
. These properties match
the corresponding properties in the WebServiceAttribute
.
You must also use a System.Web.Services.Protocols.SoapDocumentMethodAttribute
or System.Web.Services.Protocols.SoapRpcMethodAttribute
to describe the binding for each individual web service method
represented in the proxy class. This code is generated automatically in the proxy
class by adding a Visual Studio .NET web reference or using the WSDL.exe
utility included with ASP.NET.
Public NotInheritable Class WebServiceBindingAttribute : Inherits Attribute ' Public Constructors Public Sub New() Public Sub New(ByVal name As String) Public Sub New(ByVal name As String, ByVal ns As String) Public Sub New(ByVal name As String, ByVal ns As String, ByVal location As String) ' Public Instance Properties Public Property Location As String Public Property Name As String Public Property Namespace As String End Class
Hierarchy
System.Object→System.Attribute→ WebServiceBindingAttribute
Valid On
Class
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.