Share via


SoapHelper.SetAction Method

Sets the action value returned from calling the GetAction method in either the SOAPAction header or in the content type header for the given message depending on the SOAP version value.

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

Usage

'Usage
Dim request As WebRequest
Dim message As SoapEnvelope
SoapHelper.SetAction(request, message)

Syntax

'Declaration
Public Shared Sub SetAction( _
    ByVal request As WebRequest, _
    ByVal message As SoapEnvelope _
)
public static void SetAction(
    WebRequest request, 
    SoapEnvelope message
);
public:
static void SetAction(
    WebRequest^ request,
    SoapEnvelope^ message
);
public static void SetAction(
    WebRequest request, 
    SoapEnvelope message
);
public static function SetAction(
     request : WebRequest, 
     message : SoapEnvelope
) : Void;

Parameters

  • request
    The HTTP header.
  • message
    The SOAP message

Remarks

For Soap 1.1 modifies the SOAPAction header. For Soap 1.2 modifies the contentType to contain the specified action.

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