Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

System.Object
   System.Web.Services.Description.ServiceDescriptionFormatExtension
      System.Web.Services.Description.HttpBinding

[Visual Basic]
NotInheritable Public Class HttpBinding
   Inherits ServiceDescriptionFormatExtension
[C#]
public sealed class HttpBinding : ServiceDescriptionFormatExtension
[C++]
public __gc __sealed class HttpBinding : public
   ServiceDescriptionFormatExtension
[JScript]
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.

Remarks

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 http://www.w3.org/TR/wsdl/.

Example

[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'.
myBinding.Extensions.Add(myHttpBinding)

[C#] 

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

               myHttpBinding.Verb="POST";
               // Add the 'HttpBinding' to the 'Binding'.
               myBinding.Extensions.Add(myHttpBinding);

[C++] 

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

               myHttpBinding->Verb=S"POST";
               // Add the 'HttpBinding' to the 'Binding'.
               myBinding->Extensions->Add(myHttpBinding);

[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.

Requirements

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

Show:
© 2015 Microsoft