System.Web.Services.Protocols.SoapDocumentMethodAttribute Class

Applying the System.Web.Services.Protocols.SoapDocumentMethodAttribute to a method specifies that SOAP messages to and from the method use Document formatting.

See Also: SoapDocumentMethodAttribute Members

Syntax

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

Remarks

Web Services Description Language (WSDL) defines two styles for how an XML Web service method, which it calls an operation, can be formatted in a SOAP message: RPC and Document. Document refers to formatting the XML Web service method according to an XSD schema. The Document style refers to formatting the Body element as a series of one or more message parts following the Body element. Exactly how the individual message parts is determined by the SoapDocumentMethodAttribute.Use and SoapDocumentMethodAttribute.ParameterStyle properties. The SoapDocumentMethodAttribute.Use property determines whether parameters are formatted Encoded or Literal. The SoapDocumentMethodAttribute.ParameterStyle determines whether the parameters are encapsulated within a single message part following the Body element or whether each parameter is an individual message part.

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

This attribute can be applied to both an XML Web service method on the server and a method of the proxy class on the client.

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