Difference between WCF and Web API - Coding Sharp

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

One Comment

Comments are closed.