ResponseSoapContext Class

Provides access to the SoapContext associated with a SOAP response for Web services created using ASP.NET.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim responseSoapContext1 As ResponseSoapContext

Syntax

'Declaration
NotInheritable Public Class ResponseSoapContext
public sealed class ResponseSoapContext
public sealed ref class ResponseSoapContext
public final class ResponseSoapContext
public class ResponseSoapContext

Remarks

The RequestSoapContext and ResponseSoapContext classes replace the Microsoft.Web.Services2.HttpSoapContext class. The RequestSoapContext and ResponseSoapContext classes support more than the HTTP transport protocol supported by the obsolete Microsoft.Web.Services2.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 System.Web.Services.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 System.Web.Services.WebService class and include code in the one-way method to get the System.Web.Services.WebService.Context property.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services2.ResponseSoapContext

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

Microsoft.Web.Services2 Namespace
SoapContext
ResponseSoapContext

Other Resources

ResponseSoapContext Members