SoapMessage Class
Represents the data in a SOAP request or SOAP response at a specific SoapMessageStage.
System.Web.Services.Protocols.SoapMessage
System.Web.Services.Protocols.SoapClientMessage
System.Web.Services.Protocols.SoapServerMessage
Assembly: System.Web.Services (in System.Web.Services.dll)
The SoapMessage type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Action | When overridden in a derived class, gets the SOAPAction HTTP request header field for the SOAP request or SOAP response. |
![]() | ContentEncoding | Gets or sets the contents of the Content-Encoding HTTP header. |
![]() | ContentType | Gets or sets the HTTP Content-Type of the SOAP request or SOAP response. |
![]() | Exception | Gets the SoapException from the call to the XML Web service method. |
![]() | Headers | A collection of the SOAP headers applied to the current SOAP request or SOAP response. |
![]() | MethodInfo | When overridden in a derived class, gets a representation of the method prototype for the XML Web service method for which the SOAP request is intended. |
![]() | OneWay | Gets a value indicating the SoapDocumentMethodAttribute.OneWay property of either the SoapDocumentMethodAttribute or the SoapRpcMethodAttribute attribute applied to the XML Web service method. |
![]() | SoapVersion | Gets the version of the SOAP protocol used to communicate with the XML Web service. |
![]() | Stage | Gets the SoapMessageStage of the SoapMessage. |
![]() | Stream | Gets the data representing the SOAP request or SOAP response in the form of a Stream. |
![]() | Url | When overridden in a derived class, gets the base URL of the XML Web service. |
| Name | Description | |
|---|---|---|
![]() | EnsureInStage | When overridden in a derived class, asserts that the current SoapMessageStage is a stage where in parameters are available. |
![]() | EnsureOutStage | When overridden in a derived class, asserts that the current SoapMessageStage stage is a stage where out parameters are available. |
![]() | EnsureStage | Ensures that the SoapMessageStage of the call to the XML Web service method is the stage or stages passed in. If the current processing stage is not one of the stages passed in, an exception is thrown. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | 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 | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetInParameterValue | Gets the parameter passed into the XML Web service method at the specified index. |
![]() | GetOutParameterValue | Gets the out parameter passed into the XML Web service method at the specified index. |
![]() | GetReturnValue | Gets the return value of an XML Web service method. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The primary use of the SoapMessage class is for SOAP extensions, representing the data in a SOAP request or SOAP response. When the ProcessMessage method is called, a SoapExtension receives a SoapMessage at each SoapMessageStage. It is up to the particular SOAP extension to choose how to process the SoapMessage. Common SOAP extensions include encryption and compression.
SOAP extensions can be applied to either or both an XML Web service method created using ASP.NET or an XML Web service client. When a SOAP extension is applied to an XML Web service method, the ProcessMessage method receives an instance of SoapServerMessage, which derives from SoapMessage. Likewise, when a SOAP extension is applied to an XML Web service client, ProcessMessage receives an instance of SoapClientMessage.
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.
