SoapOperationBinding.Style Property
.NET Framework 3.0
Gets or sets the type of SOAP binding used by the SoapOperationBinding.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: property SoapBindingStyle Style { SoapBindingStyle get (); void set (SoapBindingStyle value); }
/** @property */ public SoapBindingStyle get_Style () /** @property */ public void set_Style (SoapBindingStyle value)
public function get Style () : SoapBindingStyle public function set Style (value : SoapBindingStyle)
Not applicable.
Property Value
One of the SoapBindingStyle values. The default is Document.// 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);
Windows 98, Windows Server 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
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: