SoapMessage.Action Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, gets the SOAPAction HTTP request header field for the SOAP request or SOAP response.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public abstract string Action { get; }

Property Value

Type: System.String

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

The Action property can be accessed during any SoapMessageStage.

myStreamWriter.WriteLine(
   "The contents of the SOAPAction HTTP header is:");
myStreamWriter.WriteLine("\t" + message.Action);

.NET Framework
Available since 1.1
Return to top
Show: