This documentation is archived and is not being maintained.
SoapBodyBinding::Encoding Property
Visual Studio 2010
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 );
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: