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

Field Value

Type: System::String^

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 );

.NET Framework
Available since 1.1
Return to top
Show: