Home » Asp.Net » Difference between WCF and Web API

Difference between WCF and Web API

Difference between WCF and Web API

WCF Web API
WCF ships with .NET Framework only Web API ships with .NET framework as well as open source
WCF Supports RESTful services but in limited manner Web API is very ideal to build RESTful services
WCF use attribute based programming model Web API maps http verbs to methods
WCF supports reliable transaction and messaging Web API doesn’t support reliable transaction and messaging
WCF supports tcp, udp, http protocol and also custom transport protocol It supports only http protocol
WCF uses Operation, Data contracts and services Web API uses routing, controller, action methods etc, same to Asp.Net MVC

About Coding Sharp

Coding sharp is a blog where you can find the authors personal experience, tutorials, examples, code samples, resources related to C#, Asp.Net, Linq, Ajax, MVC, Entity Framework, SQL Server, jQuery, Visual Studio.

Pages