Binding describes that how a client will communicate with WCF service. It tells that what protocol will be used to communicate, as WCF supports various protocols like HTTP, TCP, MSMQ, Named Pipes.
Binding determine transport protocol i.e. TCP, HTTP, message exchange format i.e. plain text, XML
You may go through to my earlier blogs to know about ABC of WCF
Below is the list of bindings supported by WCF.
BasicHttpBinding |
WSHttpBinding |
WSDualHttpBinding |
WSFederationHttpBinding |
NetTcpBinding |
NetNamedPipeBinding |
NetMsmqBinding |
NetPeerTcpBinding |
MsmgIntegrationBinding |
Lets discuss all bindings one by one.
BasicHttpBinding : Basic web service communication, no security.
WSHttpBinding : It is a SOAP based used for secure, reliable, interoperable system. Similar to BasicHttpBinding with more web service features.
WSDualHttpBinding : With duplex contract i.e. allows services and clients to send and receive messages.
WSFederationHttpBinding :
NetTcpBinding : Provide secure and reliable binding for .Net to .Net cross machine communication. NetTcpBinding generates a run time communication stack by default.
NetNamedPipeBinding : Communication is possible only on the same machine, supports duplex contracts.
NetMsmqBinding : Communication between applications by using queuing.
MSMQ stands for Microsoft Message Queue server. MSMQ assure you for very fewer chances of losing a message. MSMQ works on FIFO principle i.e. the message comes first will be released first.MSMQ handle requests from multiple clients, it maintains the queue of all requests.
NetPeerTcpBinding : Communication between computers across peer to peer.
MsmqIntegrationBinding : Direct communication with MSMQ system.
Related blogs to WCF Service-
Related blogs to WCF Service-
- Introduction to WCF
- ABC of WCF
- Basics of WCF Architecture
- WCF vs Web Service
- What is XML serialization?
- WCF Binding
- Create first WCF application
- Fault Contract in
- WCF Data Contract vs Message Contract
- Message Contract
- Data Contract Serialization and De-Serialization
- Data Contract in WCF
- Operation Contract in WCF
- Service Contract in WCF
- How to host a WCF service in IIS?
- WAS Hosting in WCF
- Self Hosting in WCF
- How to create WCF RESTful Service.