This documentation is archived and is not being maintained.
SoapOperationBinding.SoapAction Property
.NET Framework 1.1
Gets or sets the URI for the SOAP header.
[Visual Basic] Public Property SoapAction As String [C#] public string SoapAction {get; set;} [C++] public: __property String* get_SoapAction(); public: __property void set_SoapAction(String*); [JScript] public function get SoapAction() : String; public function set SoapAction(String);
Property Value
A string containing the URI for the SOAP header.
Remarks
This property is required for HTTP protocol binding of SOAP. The default value is an empty string ("").
Example
[Visual Basic] ' Create the 'SoapOperationBinding' object for the 'SOAP' protocol. Dim mySoapOperationBinding As New SoapOperationBinding() mySoapOperationBinding.SoapAction = "http://tempuri.org/AddNumbers" mySoapOperationBinding.Style = SoapBindingStyle.Document ' Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding.Extensions.Add(mySoapOperationBinding) [C#] // Create the 'SoapOperationBinding' object for the 'SOAP' protocol. SoapOperationBinding mySoapOperationBinding = new SoapOperationBinding(); mySoapOperationBinding.SoapAction = "http://tempuri.org/AddNumbers"; mySoapOperationBinding.Style = SoapBindingStyle.Document; // Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding.Extensions.Add(mySoapOperationBinding); [C++] // Create the 'SoapOperationBinding' object for the 'SOAP' protocol. SoapOperationBinding* mySoapOperationBinding = new SoapOperationBinding(); mySoapOperationBinding->SoapAction = S"http://tempuri.org/AddNumbers"; mySoapOperationBinding->Style = SoapBindingStyle::Document; // Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding->Extensions->Add(mySoapOperationBinding);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SoapOperationBinding Class | SoapOperationBinding Members | System.Web.Services.Description Namespace
Show: