HttpBinding.Namespace Field

Specifies the URI for the XML namespace representing the HTTP transport for use with SOAP. This field is constant.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

public:
literal String^ Namespace
public static final String Namespace
public const var Namespace : String
Not applicable.

The field value is "http://schemas.xmlsoap.org/wsdl/http/".

The following example demonstrates a typical use of the Namespace field.

// Create 'Binding' object.
Binding^ myBinding = gcnew Binding;
myBinding->Name = "MyHttpBindingServiceHttpPost";
XmlQualifiedName^ qualifiedName = gcnew XmlQualifiedName( "s0:MyHttpBindingServiceHttpPost" );
myBinding->Type = qualifiedName;

// Create 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";
Console::WriteLine( "HttpBinding Namespace : {0}", HttpBinding::Namespace );

// Create 'Binding' object.
Binding myBinding = new Binding();
myBinding.set_Name("MyHttpBindingServiceHttpPost");

XmlQualifiedName qualifiedName = new XmlQualifiedName(
    "s0:MyHttpBindingServiceHttpPost");
myBinding.set_Type(qualifiedName);

// Create 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.set_Verb("POST");
Console.WriteLine("HttpBinding Namespace : " 
    + HttpBinding.Namespace);

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.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: