Binding are nothing but the transport protocol which is used
to communicate with the client application,WCF Provides the Wide range of
transport protocol which can be used as per the requirement.
WSHttpBinding :- Web services with WS-support. Supports transactions
WSDualHttpBinding :- Web services with duplex contract and transaction support
WSFederationHttpBinding :- Web services with federated security. Supports transactions
MsmqIntegrationBinding :- Communication directly with MSMQ applications. Supports transactions
NetMsmqBinding :- Communication between WCF applications by using queuing. Supports transactions
NetNamedPipeBinding :- Communication between WCF applications on same computer. Supports duplex contracts and transactions
NetPeerTcpBinding :- Communication between computers across peer-to-peer services. Supports duplex contracts
NetTcpBinding :- Communication between WCF applications across computers. Supports duplex contracts and transactions
Example :
A binding
has following characteristics:
- Transport -Defines the base protocol to be used like HTTP, Named Pipes, TCP, and MSMQ are some type of protocols.
- Encoding (Optional) - Three types of encoding are available-Text, Binary, or Message Transmission Optimization Mechanism (MTOM). MTOM is an interoperable message format that allows the effective transmission of attachments or large messages (greater than 64000).
- Protocol(Optional) - Defines information to be used in the binding such as Security, transaction or reliable messaging capability.
The following are the some binding which are widely used
according to the requirement of the application, which are as
- BasicHttpBinding
- WSHttpBinding
- WSDualHttpBinding
- WSFederationHttpBinding
- MsmqIntegrationBinding
- NetMsmqBinding
- NetNamedPipeBinding
- NetPeerTcpBinding
- NetTcpBinding
WSHttpBinding :- Web services with WS-support. Supports transactions
WSDualHttpBinding :- Web services with duplex contract and transaction support
WSFederationHttpBinding :- Web services with federated security. Supports transactions
MsmqIntegrationBinding :- Communication directly with MSMQ applications. Supports transactions
NetMsmqBinding :- Communication between WCF applications by using queuing. Supports transactions
NetNamedPipeBinding :- Communication between WCF applications on same computer. Supports duplex contracts and transactions
NetPeerTcpBinding :- Communication between computers across peer-to-peer services. Supports duplex contracts
NetTcpBinding :- Communication between WCF applications across computers. Supports duplex contracts and transactions
Example :
<bindings>
<BasicHttpBinding>
<binding name="BasicHttpBinding_IService1" />
</basicHttpBinding>
</bindings
Note:
Please refer my previous articles for complete understanding
SummaryPlease refer my previous articles for complete understanding
I hope this article is useful for all students
and beginners. If you have any suggestion related to this article then
please contact me.
Post a Comment