Represents the data in a SOAP request or SOAP response at a specific System.Web.Services.Protocols.SoapMessageStage.
See Also: SoapMessage Members
The primary use of the System.Web.Services.Protocols.SoapMessage class is for SOAP extensions, representing the data in a SOAP request or SOAP response. When the SoapExtension.ProcessMessage(SoapMessage) method is called, a System.Web.Services.Protocols.SoapExtension receives a System.Web.Services.Protocols.SoapMessage at each System.Web.Services.Protocols.SoapMessageStage. It is up to the particular SOAP extension to choose how to process the System.Web.Services.Protocols.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 SoapExtension.ProcessMessage(SoapMessage) method receives an instance of System.Web.Services.Protocols.SoapServerMessage, which derives from System.Web.Services.Protocols.SoapMessage. Likewise, when a SOAP extension is applied to an XML Web service client, SoapExtension.ProcessMessage(SoapMessage) receives an instance of System.Web.Services.Protocols.SoapClientMessage.