SoapDocumentMethodAttribute Class
Applying the SoapDocumentMethodAttribute to a method specifies that SOAP messages to and from the method use Document formatting.
Assembly: System.Web.Services (in System.Web.Services.dll)
The SoapDocumentMethodAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SoapDocumentMethodAttribute() | Initializes a new instance of the SoapDocumentMethodAttribute class. |
![]() | SoapDocumentMethodAttribute(String) | Initializes a new instance of the SoapDocumentMethodAttribute class, setting the Action property to the value of the action parameter. |
| Name | Description | |
|---|---|---|
![]() | Action | Gets or sets the SOAPAction HTTP header field of the SOAP request. |
![]() | Binding | Gets or sets the binding an XML Web service method is implementing an operation for. |
![]() | OneWay | Gets or sets whether an XML Web service client waits for the Web server to finish processing an XML Web service method. |
![]() | ParameterStyle | Gets or sets whether parameters are encapsulated within a single XML element beneath the Body element in the XML portion of a SOAP message. |
![]() | RequestElementName | Gets or sets the XML element associated with the SOAP request for an XML Web service method, which is defined in a service description as an operation. |
![]() | RequestNamespace | Gets or sets the namespace associated with the SOAP request for an XML Web service method. |
![]() | ResponseElementName | Gets or sets the XML element associated with the SOAP response for an XML Web service method. |
![]() | ResponseNamespace | Gets or sets the XML namespace associated with the SOAP response for an XML Web service method. |
![]() | TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
![]() | Use | Gets or sets the parameter formatting for an XML Web service method within the XML portion of a SOAP message. |
| Name | Description | |
|---|---|---|
![]() | Equals | Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) |
![]() | Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames | Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo | Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke | Provides access to properties and methods exposed by an object. (Inherited from Attribute.) |
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 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 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




