SoapBodyBinding::Encoding Property
Gets or sets a string containing a list of space-delimited URIs. The URIs represent the encoding style (or styles) to be used to encode messages within the SOAP body.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::StringA string containing a list of URIs. The default value is an empty string ("").
The value of this property should be set only if the value of the Use property is Encoded. Otherwise this property value will be ignored.
SoapBodyBinding^ mySoapBodyBinding = gcnew SoapBodyBinding; // Encode SOAP body using rules specified by the 'Encoding' property. mySoapBodyBinding->Use = SoapBindingUse::Encoded; // Set URI representing the encoding style for encoding the body. mySoapBodyBinding->Encoding = "http://schemas.xmlsoap.org/soap/encoding/"; // Set the Uri representing the location of the specification // for encoding of content not defined by 'Encoding' property'. mySoapBodyBinding->Namespace = "http://tempuri.org/soapsvcmgr/"; myInputBinding->Extensions->Add( mySoapBodyBinding );
SoapBodyBinding* mySoapBodyBinding = new SoapBodyBinding(); // Encode SOAP body using rules specified by the 'Encoding' property. mySoapBodyBinding->Use = SoapBindingUse::Encoded; // Set URI representing the encoding style for encoding the body. mySoapBodyBinding->Encoding=S"http://schemas.xmlsoap.org/soap/encoding/"; // Set the Uri representing the location of the specification // for encoding of content not defined by 'Encoding' property'. mySoapBodyBinding->Namespace=S"http://tempuri.org/soapsvcmgr/"; myInputBinding->Extensions->Add(mySoapBodyBinding);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.