A secure and interoperable binding that is designed for use with duplex service contracts that allows both services and clients to send and receive messages.
Public Class WSDualHttpBinding _ Inherits Binding _ Implements IBindingRuntimePreferences
Dim instance As WSDualHttpBinding
public class WSDualHttpBinding : Binding, IBindingRuntimePreferences
public ref class WSDualHttpBinding : public Binding, IBindingRuntimePreferences
public class WSDualHttpBinding extends Binding implements IBindingRuntimePreferences
The WSDualHttpBinding provides the same support for Web Service protocols as the WSHttpBinding, but for use with duplex contracts. WSDualHttpBinding only supports SOAP security and requires reliable messaging. This binding requires that the client has a public URI that provides a callback endpoint for the service. This is provided by the ClientBaseAddress. A dual binding exposes the IP address of the client to the service. The client should use security to ensure that it only connects to services it trusts.
By default the WSDualHttpBinding generates the following binding element stack:
TransactionFlowBindingElement
ReliableSessionBindingElement
CompositeDuplexBindingElement
TextMessageEncodingBindingElement
HttpTransportBindingElement
The following example shows how to specify the wsDualHttpBinding binding in a configuration file.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003