Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpBinding Class
Collapse the table of content
Expand the table of content

HttpBinding Class

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

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

[XmlFormatExtensionAttribute("binding", "http://schemas.xmlsoap.org/wsdl/http/", 
[XmlFormatExtensionPrefixAttribute("http", "http://schemas.xmlsoap.org/wsdl/http/")]
public sealed class HttpBinding : ServiceDescriptionFormatExtension

The HttpBinding type exposes the following members.

Public methodHttpBindingInitializes a new instance of the HttpBinding class.

Public propertyHandledGets or sets a value indicating whether the ServiceDescriptionFormatExtension is used by the import process when the extensibility element is imported. (Inherited from ServiceDescriptionFormatExtension.)
Public propertyParentGets the parent of the ServiceDescriptionFormatExtension. (Inherited from ServiceDescriptionFormatExtension.)
Public propertyRequiredGets or sets a value indicating whether the ServiceDescriptionFormatExtension is necessary for the action to which it refers. (Inherited from ServiceDescriptionFormatExtension.)
Public propertyVerbGets or sets a value indicating whether the HTTP request will be made using the "GET" or "POST" method.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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 [<topic://cpconbuildingaspnetwebservices>]. For more information about Web Services Description Language (WSDL), see the specification at http://www.w3.org/TR/wsdl/.

The following example shows a typical usage of the HttpBinding class.

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

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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