This documentation is archived and is not being maintained.

MessageDescription.Action Property

Gets or sets the action parameter of the SOAP message that identifies the intent of the message.

Namespace:  System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string Action { get; internal set; }

Property Value

Type: System.String
A String that contains the action URI.

This optional parameter can be used to specify the URI that identifies the intent of the message. In SOAP 1.2, it serves a similar purpose as the SOAPAction HTTP header field did in SOAP 1.1.

The value of the action parameter is an absolute URI reference as defined by RFC 2396. The SOAP 1.2 specification does not require that the URI be resolvable. The URI should be globally unique and stable over time.

Servers, such as firewalls, can use the presence and content of the action parameter to filter SOAP messages and to facilitate the dispatch of SOAP messages to internal message handlers. It should not be used as an insecure form of access authorization.

Use of the action parameter is optional. SOAP receivers can use it as a hint to optimize processing, but must not require its presence to operate.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0