Partilhar via


SoapHelper.GetAction Method (HttpContext)

Gets a string value that is the action attribute in the XML Soap message from the specified httpContext.

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

Usage

'Usage
Dim httpContext As HttpContext
Dim returnValue As String
returnValue = SoapHelper.GetAction(httpContext)

Syntax

'Declaration
Overloads Public Shared Function GetAction( _
    ByVal httpContext As HttpContext _
) As String
public static string GetAction(
    HttpContext httpContext
);
public:
static String^ GetAction(
    HttpContext^ httpContext
);
public static System.String GetAction(
    HttpContext httpContext
);
public static function GetAction(
     httpContext : HttpContext
) : String;

Parameters

  • httpContext
    The HTTP context.

Return Value

A string that is the action attribute value from the supplied httpContext.

Remarks

For the given httpContext this method retrieves the Soap action from the http header, either from the "SOAPAction" header for SOAP 1.1 or from the contentType header's "action" parameter for SOAP 1.2.

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

SoapHelper Class
SoapHelper Members
Microsoft.Web.Services3 Namespace