SoapOperationBinding.SoapAction-Eigenschaft
Ruft den URI für den SOAP-Header ab oder legt diesen fest.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property SoapAction As String
'Usage
Dim instance As SoapOperationBinding
Dim value As String
value = instance.SoapAction
instance.SoapAction = value
public string SoapAction { get; set; }
public:
property String^ SoapAction {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_SoapAction ()
/** @property */
public void set_SoapAction (String value)
public function get SoapAction () : String
public function set SoapAction (value : String)
Eigenschaftenwert
Eine Zeichenfolge, die den URI für den SOAP-Header enthält.
Hinweise
Diese Eigenschaft ist für die HTTP-Protokollbindung von SOAP erforderlich. Der Standardwert ist eine leere Zeichenfolge ("").
Beispiel
' 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)
// 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);
// Create the 'SoapOperationBinding' object for the 'SOAP' protocol.
SoapOperationBinding^ mySoapOperationBinding = gcnew SoapOperationBinding;
mySoapOperationBinding->SoapAction = "http://tempuri.org/AddNumbers";
mySoapOperationBinding->Style = SoapBindingStyle::Document;
// Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding->Extensions->Add( mySoapOperationBinding );
// Create the 'SoapOperationBinding' object for the 'SOAP' protocol.
SoapOperationBinding mySoapOperationBinding = new SoapOperationBinding();
mySoapOperationBinding.set_SoapAction("http://tempuri.org/AddNumbers");
mySoapOperationBinding.set_Style(SoapBindingStyle.Document);
// Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding.get_Extensions().Add(mySoapOperationBinding);
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
SoapOperationBinding-Klasse
SoapOperationBinding-Member
System.Web.Services.Description-Namespace