Release 1.0 - ...
<bindings> element
This section holds a collection of standard and/or custom bindings. Each entry is a binding element that can be identified by its unique name. Services use bindings by linking them using the name.
An individual binding element can configure several aspects of the message stack: the maximum allowed message-size, various timeout values, security configuration, whether or not reliable messaging should be used, etcetera.
Notice however that the attributes exposed on each standard system-provided binding are (just) the ones most appropriate for the usage scenario the binding addresses.
The example below contains several binding configuration sections for both client and service endpoints.
Example
XML |
Copy Code
|
<bindings>
<netNamedPipeBinding>
<binding name="InteropServiceBinding" maxReceivedMessageSize="1048576" receiveTimeout="00:30:00">
<readerQuotas maxStringContentLength="1048576" />
</binding>
</netNamedPipeBinding>
<basicHttpBinding>
<binding name="cmsWebserviceSoapBinding">
<readerQuotas maxStringContentLength="16384" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_EventSubscriptionService">
<readerQuotas maxStringContentLength="16384" />
<reliableSession ordered="true" inactivityTimeout="00:20:00" />
<security mode="Message">
<message clientCredentialType="Windows" negotiateServiceCredential="false" algorithmSuite="Default" />
</security>
</binding>
</wsDualHttpBinding>
</bindings>
|
Attributes
None.
Parent element
Element name |
Description |
<system.serviceModel> |
This configuration section contains all the Windows Communication Foundation (WCF) ServiceModel configuration elements. |
Child elements
Element name |
Description |
<netNamedPipeBinding> |
Grouping element for one or more binding configuration element(s), each holding configuration details for a specific binding which uses a netNamedPipeBinding. |
<wsDualHttpBinding> |
Grouping element for one or more binding configuration element(s), each holding configuration details for a specific binding which uses a wsDualHttpBinding. |
<basicHttpBinding> |
Grouping element for one or more binding configuration element(s), each holding configuration details for a specific binding which uses a basicHttpBinding. |