WCF vs Web API

WCF stands for Windows communication Foundations.
WCF and WEB API both supports REST architecture then what are the differences between these 2 and when to choose.

1. WCF require many configuration.
2. WCF suited where multiple clients may use different protocols. For Eg - Client A require HTTP to communicate and Client B require TCP to communicate. This can be achieved by creating single service and 2 endpoints for each client.
3. WEB API can be communicated over HTTP protocol only, where as WCF can be communicated over HTTP, TCP, MSMQ


Popular posts from this blog

CAML Query in SharePoint 2010

Calling REST APi from server side code - C#

All about SharePoint 2010 Content Type Hub

SharePoint Interview Questions and Answers

Calling ASP.Net WebMethod using jQuery AJAX