This project is read-only.

If You Need to Support Bidirectional Communication between WCF Client and WCF Service, Use wsDualHttpBinding or netTcpBinding

- J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

If you need to support a duplex service, use wsDualHttpBinding or netTcpBinding. A duplex service is a service that uses duplex message patterns which provides the ability for a service to communicate back to the client via a callback. You can also use wsDualHttpBinding binding to support communication via SOAP intermediaries.

Here are the details for wsDualHttpBinding:
  • It supports two-way communication between the client and the service.
  • Provides interoperability with non-WCF clients that support the WS* stack.
  • Supports the WS* stack including reliable messaging, and secure transactions.
  • It only supports message security; you cannot turn on transport security.
  • Allows the service to be hosted in IIS 5.0 or IIS 6.0
  • If you choose to use message security you can use certificates, username, Windows or Issue token authentication (Windows CardSpace).

The following example shows how to configure wsDualHttpBinding.
        <service behaviorConfiguration="" name="WCFServicecHost.MyService">
            <endpoint address="" binding="wsDualHttpBinding" bindingConfiguration=""
                name="DualBinding" contract="WCFServicecHost.IMyService" />

Additional Resources

Last edited Jun 12, 2008 at 10:13 PM by prashantbansode, version 1


No comments yet.