Partager via


ResponseSoapContext Class

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

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

Usage

'Usage
Dim responseSoapContext1 As ResponseSoapContext

Syntax

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

Remarks

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.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services3.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 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

ResponseSoapContext Members
Microsoft.Web.Services3 Namespace
SoapContext
ResponseSoapContext