<compositeDuplex>
Defines the binding element that is used when the client must expose an endpoint for the service to send messages back to the client.
Schema Hierarchy
<system.serviceModel>
<bindings>
<customBinding>
<binding>
<compositeDuplex>
Syntax
<compositeDuplex clientBaseAddress="URI" />
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
clientBaseAddress |
A URI that sets the address of the back channel in duplex mode. The service uses this address to make contact and establish a connection with the client. If this attribute is not set, a default address “ |
Child Elements
None
Parent Elements
Element | Description |
---|---|
Defines all binding capabilities of the custom binding. |
Remarks
This configuration element is used with transports that do not allow duplex communications natively, for example, HTTP. TCP, by contrast, allows duplex communications natively, and does not require the use of this binding element for the service to send messages back to a client.
The client must expose an address for the service to make contact and establish a connection. This client address is provided by the clientBaseAddress attribute. Note that Windows Communication Foundation (WCF) auto-generates a ClientBaseAddress if one is not explicitly set by the user.
Example
<compositeDuplex clientBaseAddress="https://www.contoso.com" />
See Also
Reference
<customBinding>
CompositeDuplexElement
CompositeDuplexBindingElement
CustomBinding
Other Resources
Windows Communication Foundation Bindings
Extending Bindings
Custom Bindings
© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-01-05