Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Attributes for XML Web Services Created Using ASP.NET and XML Web Service Clients

This topic is specific to a legacy technology. XML Web services and XML Web service clients should now be created using Windows Communication Foundation .

The following table lists the attributes that can be applied to either a Web service created using ASP.NET or a Web service client.

Attribute Description

WebMethod

Applying this attribute to a method makes it a Web service method.

WebService

Applying this attribute to a class that implements a Web service specifies additional information about the Web service, such as the default XML namespace.

WebServiceBinding

Applying this attribute to a class that implements a Web service or a proxy class specifies the bindings implemented by the Web service.

SoapDocumentMethod

Applying this attribute to a Web service method or a method of a proxy class specifies that it expects document-based SOAP messages.

SoapDocumentService

Applying this attribute to a class that implements a Web service or a proxy class specifies that by default Web service methods within the class expect document-based SOAP messages.

SoapRpcMethod

Applying this attribute to a Web service method or a method of a proxy class specifies that it expects RPC-based SOAP messages.

SoapRpcService

Applying this attribute to a class implementing a Web service or a proxy class specifies that by default Web service methods within the class expect RPC-based SOAP messages.

SoapHeader

Applying this attribute to a Web service method or a method of a proxy class specifies that it can process a specific SOAP header.

SoapExtension

Applying an attribute that derives from this class to a Web service method or a method of a proxy class specifies a SOAP extension should execute with the Web service method.

MatchAttribute

Represents the attributes of a match made using text pattern matching. Valid only for Web service clients.

See Also

Reference

WebService

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.