다음을 통해 공유


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

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

Attribute Description
WebMethod Applying this attribute to a method makes it an XML Web service method.
WebService Applying this attribute to a class implementing an XML Web service specifies additional information about the XML Web service, such as the default XML namespace.
WebServiceBinding Applying this attribute to a class implementing an XML Web service or a proxy class specifies the bindings implemented by the XML Web service.
SoapDocumentMethod Applying this attribute to an XML 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 implementing an XML Web service or a proxy class specifies that by default XML Web service methods within the class expect Document-based SOAP messages.
SoapRpcMethod Applying this attribute to an XML 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 an XML Web service or a proxy class specifies that by default XML Web service methods within the class expect RPC-based SOAP messages.
SoapHeader Applying this attribute to an XML Web service method or a method of a proxy class specifies that it can process a specific SOAP Header.
SoapExtension Applying an attribute deriving from this class to an XML Web service method or a method of a proxy class specifies a SOAP extension should execute with the XML Web service method.
MatchAttribute Represents the attributes of a match made using text pattern matching. Valid only for XML Web service clients.