SoapBodyBinding.Use Property
.NET Framework 2.0
Indicates whether the message parts are encoded using specified encoding rules, or define the concrete schema of the message.
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 SoapBindingUse Use { SoapBindingUse get (); void set (SoapBindingUse value); }
/** @property */ public SoapBindingUse get_Use () /** @property */ public void set_Use (SoapBindingUse value)
public function get Use () : SoapBindingUse public function set Use (value : SoapBindingUse)
Not applicable.
Property Value
One of the SoapBindingUse values. The default is Default.// Create the 'InputBinding' object for the 'SOAP' protocol. InputBinding^ myInput = gcnew InputBinding; SoapBodyBinding^ mySoapBinding1 = gcnew SoapBodyBinding; mySoapBinding1->Use = SoapBindingUse::Literal; myInput->Extensions->Add( mySoapBinding1 ); // Add the 'InputBinding' object to 'OperationBinding' object. myOperationBinding->Input = myInput; // Create the 'OutputBinding' object'. OutputBinding^ myOutput = gcnew OutputBinding; myOutput->Extensions->Add( mySoapBinding1 ); // Add the 'OutputBinding' object to 'OperationBinding' object. myOperationBinding->Output = myOutput; // Add the 'OperationBinding' object to 'Binding' object. myBinding->Operations->Add( myOperationBinding ); // Add the 'Binding' object to the ServiceDescription instance. myDescription->Bindings->Add( myBinding );
// Create the 'InputBinding' object for the 'SOAP' protocol. InputBinding myInput = new InputBinding(); SoapBodyBinding mySoapBinding1 = new SoapBodyBinding(); mySoapBinding1.set_Use(SoapBindingUse.Literal); myInput.get_Extensions().Add(mySoapBinding1); // Add the 'InputBinding' object to 'OperationBinding' object. myOperationBinding.set_Input(myInput); // Create the 'OutputBinding' object'. OutputBinding myOutput = new OutputBinding(); myOutput.get_Extensions().Add(mySoapBinding1); // Add the 'OutputBinding' object to 'OperationBinding' object. myOperationBinding.set_Output(myOutput); // Add the 'OperationBinding' object to 'Binding' object. myBinding.get_Operations().Add(myOperationBinding); // Add the 'Binding' object to the ServiceDescription instance. myDescription.get_Bindings().Add(myBinding);
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: