2 out of 10 rated this helpful - Rate this topic

WSDualHttpBinding Class

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.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public class WSDualHttpBinding : Binding, 
	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:

The following example shows how to specify the wsDualHttpBinding binding in a configuration file.

System.Object
  System.ServiceModel.Channels.Binding
    System.ServiceModel.WSDualHttpBinding
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.