1 out of 1 rated this helpful - Rate this topic

RequestSoapContext Class

Provides access to the SoapContext associated with a SOAP request for Web services.


Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

'Usage
Dim requestSoapContext1 As RequestSoapContext

public sealed class RequestSoapContext
public final class RequestSoapContext
public class RequestSoapContext

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.


System.Object
  Microsoft.Web.Services3.RequestSoapContext
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

Did you find this helpful?
(1500 characters remaining)