Friday, 13 November 2015

difference between web api and wcf

We are always little bit confusion when we are making service based application. that which we need to refer Web apt or WCF. The below difference of Web API and WCF will really help to select.



Web API Rest full
ASP.Net WCF Rest Support
Support Protocol
It support only HTTP protocol.
It support multiple protocol such as HTTP, UDP, TCP.
Support WS* Standard
It’s not supporting Transaction or reliable messaging.

It support WS* standard like Transaction, Reliable Messaging. Message security etc.
SOAP Support
No
WCF was primarily designed for SOAP-based XML messages,
Availability
Ship with .Net framework  but available as open source.
Ship with .Net Framework.
Configuration and Attribute
No need of much configuration to use it.
There is hell lot of configuration required to use it and overuse of attributes.
Message Exchange Pattern
It support Request/response only.
It support One Way, Request-Reply, Duplex message Exchange pattern.


No comments:

Post a Comment