SoapDocumentServiceAttribute Class
Assembly: System.Web.Services (in system.web.services.dll)
[AttributeUsageAttribute(AttributeTargets::Class)] public ref class SoapDocumentServiceAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class) */ public final class SoapDocumentServiceAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class) public final class SoapDocumentServiceAttribute extends Attribute
Not applicable.
The SoapDocumentServiceAttribute allows you to set the default formatting styles for XML Web service methods within an XML Web service. If an individual XML Web service method must change these defaults, apply a SoapDocumentMethodAttribute to that XML Web service method.
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 request or a SOAP response: RPC and Document. Exactly how the individual message parts is determined by the Use and ParameterStyle properties. The Use property determines whether parameters are formatted Encoded or Literal. The ParameterStyle determines whether the parameters are encapsulated within a single message part beneath the Body element, or whether each parameter is an individual message part.
To set the default method level formatting to RPC, apply a SoapRpcServiceAttribute to the class implementing the XML Web service.
For more details, see Customizing SOAP Message Formatting.
This attribute can be applied to a class implementing an XML Web service.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.