161k views
3 votes
What is a WCF Binding? How many different types of bindings available in WCF?

User Ralzaul
by
7.9k points

1 Answer

2 votes

Final answer:

A WCF binding is a configuration that specifies how a client and a service should communicate with each other. There are several types of bindings available in WCF, including BasicHttpBinding, NetTcpBinding, and WSDualHttpBinding.

Step-by-step explanation:

In WCF (Windows Communication Foundation), a binding is a configuration that specifies how a client and a service should communicate with each other. It defines the protocol, message encoding, and other communication settings. There are several types of bindings available in WCF, including:

  • BasicHttpBinding: This binding uses HTTP as the transport protocol and is suitable for inter-operability with older non-WCF services.
  • NetTcpBinding: This binding uses TCP as the transport protocol and is suitable for high-performance scenarios within a single network.
  • WSDualHttpBinding: This binding allows both the client and the service to communicate over HTTP and supports duplex communication.
User Chris Conover
by
8.1k points