How to choose bindings in wcf? [Resolved]

Posted by Shreedar under WCF on 8/15/2015 | Points: 10 | Views : 541 | 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.

Regards

Sridhar Thota.
www.dotnet-sridhar.blogspot.com



Responses

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

Up
0
Down

Resolved
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

http://www.dotnetfunda.com/interviews/exclusive/show/749/what-are-different-bindings-supported-by-wcf
http://www.dotnetfunda.com/interviews/show/288/what-is-binding-and-how-many-types-of-bindings-are-there-in-wcf
Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

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

Login to post response