System.Web.Services.Protocols.SoapRpcServiceAttribute Class

Sets the default format of SOAP requests and responses sent to and from XML Web service methods within the XML Web service.

See Also: SoapRpcServiceAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class, Inherited=true)]
public sealed class SoapRpcServiceAttribute : Attribute

Remarks

The System.Web.Services.Protocols.SoapRpcServiceAttribute allows you to set the default encoding style for XML Web service methods within an XML Web service to RPC method encoding and System.Web.Services.Description.SoapBindingUse.Encoded parameter encoding.

Web Services Description Language (WSDL) defines two styles for how an XML Web service method, or operation, can be encoded in a SOAP request or a SOAP response: RPC and Document. The RPC style refers to encoding the XML Web service method according to section 7 of the SOAP specification for using SOAP for RPC. This style specifies that all parameters are encapsulated within a single element named after the XML Web service method, and that each element within that element represents a parameter named after its respective parameter name.

To set the default method level encoding to Document, apply a System.Web.Services.Protocols.SoapDocumentServiceAttribute to the class implementing the XML Web service.

For more details, see [<topic://cpconCustomizingSOAPInASPNETWebServicesWebServiceClients>].

This attribute can be applied to a class implementing an XML Web service.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0