HttpBinding.Namespace Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the URI for the XML namespace representing the HTTP transport for use with SOAP. This field is constant.
public: System::String ^ Namespace;
public const string Namespace;
val mutable Namespace : string
Public Const Namespace As String
Field Value
Examples
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.Name = "MyHttpBindingServiceHttpPost";
XmlQualifiedName qualifiedName = new XmlQualifiedName("s0:MyHttpBindingServiceHttpPost");
myBinding.Type = qualifiedName;
// Create 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.Verb = "POST";
Console.WriteLine("HttpBinding Namespace : "+HttpBinding.Namespace);
' Create 'Binding' object.
Dim myBinding As New Binding()
myBinding.Name = "MyHttpBindingServiceHttpPost"
Dim qualifiedName As New XmlQualifiedName("s0:MyHttpBindingServiceHttpPost")
myBinding.Type = qualifiedName
' Create 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()
myHttpBinding.Verb = "POST"
Console.WriteLine("HttpBinding Namespace : " + HttpBinding.Namespace)
Remarks
The field value is "http://schemas.xmlsoap.org/wsdl/http/".
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.