<httpTransport>
Specifies an HTTP transport for transmitting SOAP messages for a custom binding.
Schema Hierarchy
<system.serviceModel>
<bindings>
<customBinding>
<binding>
<httpTransport>
Syntax
<httpTransport
allowCookies=Boolean"
authenticationScheme="Digest/Negotiate/Ntlm/Basic/Anonymous"
bypassProxyOnLocal=Boolean"
hostnameComparisonMode="StrongWildcard/Exact/WeakWildcard"
keepAliveEnabled="Boolean"
maxBufferSize="Integer"
proxyAddress="Uri"
proxyAuthenticationScheme="None/Digest/Negotiate/Ntlm/Basic/Anonymous"
IntegratedWindowsAuthentication: Specifies Windows authentication"
realm="String"
transferMode="Buffered/Streamed/StreamedRequest/StreamedResponse"
unsafeConnectionNtlmAuthentication="Boolean"
useDefaultWebProxy="Boolean" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
allowCookies |
A Boolean value that specifies whether the client accepts cookies and propagates them on future requests. The default is false. You can use this attribute when you interact with ASMX Web services that use cookies. In this way, you can be sure that the cookies returned from the server are automatically copied to all future client requests for that service. |
authenticationScheme |
Specifies the protocol used to authenticate client requests being processed by an HTTP listener. Valid values include the following:
The default is Anonymous. This attribute is of type AuthenticationSchemes. This attribute can only be set once. |
bypassProxyOnLocal |
A Boolean value that indicates whether to bypass the proxy server for local addresses. The default is false. A local address is one that is on the local LAN or intranet. Windows Communication Foundation (WCF) always ignores the proxy if the service address begins with https://localhost. You should use the host name rather than localhost if you want clients to go through a proxy when talking to services on the same machine. |
hostnameComparisonMode |
Specifies the HTTP hostname comparison mode used to parse URIs. Valid values are,
The default is StrongWildcard. This attribute is of type HostnameComparisonMode. |
keepAliveEnabled |
A Boolean value that specifies whether to make a persistent connection to the internet resource. |
maxBufferSize |
A positive integer that specifies the maximum size of the buffer. The default is 524288 |
proxyAddress |
A URI that specifies the address of the HTTP proxy. If useSystemWebProxy is true, this setting must be null. The default is null. |
proxyAuthenticationScheme |
Specifies the protocol used for authenticating client requests being processed by an HTTP proxy. Valid values include the following:
The default is Anonymous. This attribute is of type AuthenticationSchemes. |
realm |
A string that specifies the realm to use on the proxy/server. The default is an empty string. Servers use realms to partition protected resources. Each partition can have its own authentication scheme and/or authorization database. Realms are used only for basic and digest authentication. After a client successfully authenticates, the authentication is valid for all resources in a given realm. For a detailed description of realms, see RFC 2617 at http://www.ietf.org. |
transferMode |
Specifies whether messages are buffered or streamed or a request or response. Valid values include the following:
The default is Buffered. This attribute is of type TransferMode . |
unsafeConnectionNtlmAuthentication |
A Boolean value that specifies whether Unsafe Connection Sharing is enabled on the server. The default is false. If enabled, NTLM authentication is performed once on each TCP connection. |
useDefaultWebProxy |
A Boolean value that specifies whether the machine-wide proxy settings are used rather than the user specific settings. The default is true. |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Defines all binding capabilities of the custom binding. |
Remarks
The httpTransport element 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 the Windows Communication Foundation (WCF) to ensure interoperability with other non-WCF Web services stacks.
See Also
Reference
<customBinding>
HttpTransportElement
HttpTransportBindingElement
TransportBindingElement
CustomBinding
Other Resources
Transports in Windows Communication Foundation
Choosing a Transport
Windows Communication Foundation Bindings
Extending Bindings
Custom Bindings
© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05