1.

What is the difference between Web API and WCF?

Answer»

WCF (Windows Communication Foundation): It is a framework used for developing SOAP (Service-oriented applications). This framework is used for developing, configuring, and deploying, or implementing network-distributed services. 

Web API: It is an application programming interface for both web browsers and web servers. Browser API simply extends or increases the FUNCTIONALITY of web browsers whereas Server API simply extends or increases the functionality of web server.

Web APIWCF
It is used to develop both SOAP-based services and RESTful services.It is used to deploy only SOAP-based services.
It SUPPORTS various MVC features such as routing, MODEL binding, etc.It does not support any MVC features.
It only supports HTTP protocol.It supports various protocols such as HTTP, UDP, custom transport.
It is considered best for developing RESTFUL services.It supports only limited RESTFUL services.
It is good when one wants to expose an EXPENSIVE range of clients such as iPhones, browsers, mobile phones, tablets, etc.It is good for creating services that uses expedite transport channels such as TCP, UDP, Named pipes, etc.
It offers support for UTF-8 encoding format.It offers TEXT, Binary encoding support, MTOM (Message Transmission Optimization MECHANISM), etc.


Discussion

No Comment Found