RequestSoapContext Class
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
The RequestSoapContext and ResponseSoapContext classes replace the Microsoft.Web.Services3.HttpSoapContext class. The RequestSoapContext and ResponseSoapContext classes support more than the HTTP transport protocol supported by the obsolete Microsoft.Web.Services3.HttpSoapContext class, including the TCP protocol and other custom protocols you build.
The SoapContext provides access to the WS-Security, WS-Addressing, and other Web services architecture-specific details associated with a SOAP message.
Use this class's Current property to gain access from within a Web service to the SoapContext associated with a SOAP request. The Current property is used to access the SoapContext from within the class deriving from SoapService when SOAP messaging is used and from within the method to which the WebMethodAttribute is applied when the Web service is hosted within ASP.NET.
When a one-way Web service method is hosted by ASP.NET, the Web service method cannot access the SoapContext using the Current property. To gain access to the SoapContext for one-way methods, the class implementing the Web service should inherit from the WebService class and include code in the one-way method to get the Context property.