Binding and Its Types in WCF (Theory Article)

Today, in this article let's see what is binding and what are different types of protocols used by client to consume the WCF service.

Question Arises: What is Binding in WCF?

It is a process of communicating with client to consume WCF Service governed by rich set of protocols. The WCF service can be communicated with client using different protocols for effective message transition, security and reliability. The message is transferred using different protocols and encoding techniques.

The lists of different set of bindings are as follows:

1. BasicHttpBinding

  • Supports ASP.NET Web Service communication.
     
  • No Security by default.
     
  • Enabled message Encoding.
     
  • No reliable message delivery.

2. WSHttpBinding

  • Supports reliable and secured transactions.
     
  • Http and Https communication enabled.
     
  • Sessions disabled by default.
     
  • Good support for web services.

3. WSDualHttpBinding

  • Supports duplex, reliable transactions.
     
  • Sessions enabled.

4. WSFederationHttpBinding

  • Supports federated security for authentication and authorization across trusted multiple domains

5. NetTcpBinding

  • Supports duplex, reliable transactions.
     
  • Comes into scenario when you want to communicate with WCF applications across different systems.

6. NetNamedPipeBinding

  • Comes into scenario when you want to communicate with WCF applications on same system in duplex contract fashion.

7. NetPeerTcpBinding

  • Comes into scenario when you want to communicate with WCF applications between computers or peer-to-peer fashion.

8. NetMsmqBinding

  • Communicated with WCF applications when you want to make queued processing across systems.

I hope this article is useful for you.


Similar Articles
MVC Corporation
MVC Corporation is consulting and IT services based company.