SoapServerMessage.Action Property

Definition

Gets the SOAPAction HTTP request header field for the SOAP request or SOAP response.

C#
public override string Action { get; }

Property Value

The SOAPAction HTTP request header field for the SOAP request or SOAP response.

Examples

The following code fragment is part of a SOAP extension that logs the SOAP messages sent and received by an XML Web service. This particular fragment outputs to that log file the value of the SOAPAction HTTP request header field.

Remarks

The Action property can be accessed during any SoapMessageStage.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1