HttpTransportBindingElement Class
Represents the binding element used to specify an HTTP transport for transmitting messages.
System.ServiceModel.Channels::BindingElement
System.ServiceModel.Channels::TransportBindingElement
System.ServiceModel.Channels::HttpTransportBindingElement
System.ServiceModel.Channels::HttpsTransportBindingElement
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The HttpTransportBindingElement type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | HttpTransportBindingElement() | Initializes a new instance of the HttpTransportBindingElement class. |
![]() ![]() | HttpTransportBindingElement(HttpTransportBindingElement) | Initializes a new instance of the HttpTransportBindingElement class. |
| Name | Description | |
|---|---|---|
![]() | AllowCookies | Gets or sets a value that indicates whether the client accepts cookies and propagates them on future requests. |
![]() | AuthenticationScheme | Gets or sets the authentication scheme used to authenticate client requests being processed by an HTTP listener. |
![]() | BypassProxyOnLocal | Gets or sets a value that indicates whether proxies are ignored for local addresses. |
![]() | DecompressionEnabled | Gets or sets whether the process for returning compressed message data to its original size and format is enabled. |
![]() | ExtendedProtectionPolicy | Gets or sets the value of the extended security policy used by the server to validate incoming client connections. |
![]() | HostNameComparisonMode | Gets or sets a value that indicates whether the hostname is used to reach the service when matching on the URI. |
![]() | KeepAliveEnabled | Gets or sets a value that indicates whether to make a persistent connection to a service endpoint. |
![]() ![]() | ManualAddressing | Gets or sets a value that indicates whether manual addressing of the message is required. (Inherited from TransportBindingElement.) |
![]() | MaxBufferPoolSize | Gets or sets the maximum size of any buffer pools used by the transport. (Inherited from TransportBindingElement.) |
![]() ![]() | MaxBufferSize | Gets or sets the maximum size of the buffer to use. For buffered messages this value is the same as MaxReceivedMessageSize. For streamed messages, this value is the maximum size of the SOAP headers, which must be read in buffered mode. |
![]() ![]() | MaxReceivedMessageSize | Gets and sets the maximum allowable message size that can be received. (Inherited from TransportBindingElement.) |
![]() | ProxyAddress | Gets or sets a URI that contains the address of the proxy to use for HTTP requests. |
![]() | ProxyAuthenticationScheme | Gets or sets the authentication scheme used to authenticate client requests being processed by an HTTP proxy. |
![]() | Realm | Gets or sets the authentication realm. |
![]() ![]() | Scheme | Gets the URI scheme for the transport. (Overrides TransportBindingElement::Scheme.) |
![]() | TransferMode | Gets or sets the transfer mode. |
![]() | UnsafeConnectionNtlmAuthentication | Gets or sets a value that indicates whether Unsafe Connection Sharing is enabled on the server. If enabled, NTLM authentication is performed once on each TCP connection. |
![]() | UseDefaultWebProxy | Gets or sets a value that indicates whether the machine-wide proxy settings are used rather than the user specific settings. |
| Name | Description | |
|---|---|---|
![]() ![]() | BuildChannelFactory<TChannel> | Creates a channel factory that can be used to create a channel. (Overrides BindingElement::BuildChannelFactory<TChannel>(BindingContext).) |
![]() | BuildChannelListener<TChannel> | Creates a channel listener of the specified type. (Overrides BindingElement::BuildChannelListener<TChannel>(BindingContext).) |
![]() ![]() | CanBuildChannelFactory<TChannel> | Determines whether a channel factory of the specified type can be built. (Overrides BindingElement::CanBuildChannelFactory<TChannel>(BindingContext).) |
![]() | CanBuildChannelListener<TChannel> | Determines whether a channel listener of the specified type can be built. (Overrides BindingElement::CanBuildChannelListener<TChannel>(BindingContext).) |
![]() ![]() | Clone | Creates a copy of the current binding element. (Overrides BindingElement::Clone().) |
![]() ![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() ![]() | GetProperty<T> | Gets a property from the specified BindingContext. (Overrides TransportBindingElement::GetProperty<T>(BindingContext).) |
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ShouldSerializeExtendedProtectionPolicy | Returns an indication that it is not possible to Xaml serialize the extended protection policy. |
![]() ![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IPolicyExportExtension::ExportPolicy | Exports a custom policy assertion about bindings. |
![]() ![]() | IWsdlExportExtension::ExportContract | Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for a contract. |
![]() ![]() | IWsdlExportExtension::ExportEndpoint | Writes custom Web Services Description Language (WSDL) elements into the generated WSDL for an endpoint. |
The HttpTransportBindingElement class is the starting point for creating a custom binding that implements the HTTP transport protocol. HTTP is the primary transport used for interoperability purposes. This transport is supported by to ensure interoperability with other non- Web services stacks.
The service model uses this class to create factory objects that implement the IChannelFactory and IChannelListener interfaces. These factory objects, in turn, create the channels and listeners that transmit SOAP messages using the HTTP protocol.
You configure the factories that this class creates by setting its properties, such as AuthenticationScheme, HostNameComparisonMode, and MaxBufferSize.
You can also set properties on the base class, TransportBindingElement, such as ManualAddressing, MaxReceivedMessageSize, and MaxBufferPoolSize. For a complete list of properties, see TransportBindingElement.
The following code shows how to imperatively use the HttpTransportBindingElement.
HttpTransportBindingElement can also be used in a configuration file as shown in the following configuration.
<bindings>
<customBinding>
<binding name="Binding1">
<reliableSession acknowledgementInterval="00:00:00.2000000" enableFlowControl="true"
maxTransferWindowSize="32" inactivityTimeout="00:10:00" maxPendingChannels="128"
maxRetryCount="8" ordered="true" />
<security mode="None"/>
<httpTransport authenticationScheme="Anonymous" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
proxyAuthenticationScheme="Anonymous" realm=""
useDefaultWebProxy="true" />
</binding>
</customBinding>
</bindings>
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

