How to choose bindings in wcf? [Resolved]

Posted by Shreedar under WCF on 8/15/2015 | Points: 10 | Views : 342 | Status : [Member] | Replies : 1
As we are having many bindings available in wcf. Which binding should be used when? can any one provide answer how to make decision while choosing bindings.


Sridhar Thota.


Posted by: Sheonarayan on: 8/18/2015 [Administrator] HonoraryPlatinum | Points: 50


Good question Shreedar, The decision must be backed by the type of data you want to expose and for whom you are exposing the data.

In general, if you want your service to be consumed by all devices, and platform of applications you should go be BasicHttpBinding or WsHttpBinding.

If you are exposing your service for the local user or intranet application, go for NetTcpBinding that uses tcp protocol.

Above are two most popular bindings used in WCF.

Here are few articles that help you to learn this in more details

Sheo Narayan

Shreedar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response