<httpsTransport>
Specifies an HTTP transport for transmitting SOAP messages for a custom binding.
<system.serviceModel>
<bindings>
<customBinding>
<binding>
<httpsTransport>
<httpsTransport
allowCookies=Boolean"
authenticationScheme="Digest/Negotiate/Ntlm/Basic/Anonymous"
bypassProxyOnLocal=Boolean"
hostnameComparisonMode="StrongWildcard/Exact/WeakWildcard"
manualAddressing="Boolean"
maxBufferPoolSize="Integer"
maxBufferSize="Integer"
maxReceivedMessageSize="Integer"
proxyAddress="Uri"
proxyAuthenticationScheme="None/Digest/Negotiate/Ntlm/Basic/Anonymous"
IntegratedWindowsAuthentication: Specifies Windows authentication"
realm="String"
requireClientCertificate=Boolean"
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. |
manualAddressing |
A Boolean value that enables the user to take control of message addressing. This property is usually used in router scenarios, where the application determines which one of several destinations to send a message to. When set to true, the channel assumes the message has already been addressed and does not add any additional information to it. The user can then address every message individually. When set to false, the default Windows Communication Foundation (WCF) addressing mechanism automatically creates addresses for all messages. The default is false. |
maxBufferPoolSize |
A positive integer that specifies the maximum size of the buffer pool. The default is 524288. Many parts of WCF use buffers. Creating and destroying buffers each time they are used is expensive, and garbage collection for buffers is also expensive. With buffer pools, you can take a buffer from the pool, use it, and return it to the pool once you are done. Thus the overhead in creating and destroying buffers is avoided. |
maxBufferSize |
A positive integer that specifies the maximum size of the buffer. The default is 524288 |
maxReceivedMessageSize |
A positive integer that specifies the maximum allowable message size that can be received. The default is 65536. |
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. |
requireClientCertificate |
A Boolean value that specifies if the server requires the client to provide a client certificate as part of the HTTPS handshake. The default is false. |
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. |
See Also
Reference
Send comments about this topic to Microsoft.
© Microsoft Corporation. All rights reserved.