SoapBodyBinding.Namespace Property
.NET Framework 3.0
Get or sets the URI representing the location of the specifications for encoding of content not specifically defined by the Encoding property.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
This property will return an empty string ("") if the property value has not been set. The value should only be set if the value of the Use property is Encoded. Otherwise the property value will be ignored, thus leading to unexpected behavior by the XML Web service.
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.set_Use(SoapBindingUse.Encoded);
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.
set_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.set_Namespace("http://tempuri.org/soapsvcmgr/");
myInputBinding.get_Extensions().Add(mySoapBodyBinding);
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: