This documentation is archived and is not being maintained.

HttpBinding Class

Represents an extensibility element added to a Binding within an XML Web service. This class cannot be inherited.

For a list of all members of this type, see HttpBinding Members.


[Visual Basic]
NotInheritable Public Class HttpBinding
   Inherits ServiceDescriptionFormatExtension
public sealed class HttpBinding : ServiceDescriptionFormatExtension
public __gc __sealed class HttpBinding : public
public class HttpBinding extends ServiceDescriptionFormatExtension

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The use of this class as an extensibility element specifies that information is to be passed by HTTP. For more information about specification of protocols for XML Web services, see Building XML Web Services Using ASP.NET. For more information about Web Services Description Language (WSDL), see the specification at


[Visual Basic, C#, C++] The following example shows a typical usage of the HttpBinding class.

[Visual Basic] 
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()

myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.


               // Create the 'HttpBinding' object.
               HttpBinding myHttpBinding = new HttpBinding();

               // Add the 'HttpBinding' to the 'Binding'.


               // Create the 'HttpBinding' object.
               HttpBinding* myHttpBinding = new HttpBinding();

               // Add the 'HttpBinding' to the 'Binding'.

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.Web.Services.Description

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web.Services (in System.Web.Services.dll)

See Also

HttpBinding Members | System.Web.Services.Description Namespace