Introduction :
Hello friends in this article i will explain to you what is the basic difference between Web API and WCF(windows communication foundation).so lets start to understand the concepts of web api and wcf ,its uses .
WEB API(Asp.net Web API)
Hello friends in this article i will explain to you what is the basic difference between Web API and WCF(windows communication foundation).so lets start to understand the concepts of web api and wcf ,its uses .
WEB API(Asp.net Web API)
- Web API is a framework who works basically for the HTTP services.
- It is very usefull service for the different type of clients like Mobile , iPhone ,Tab ,Android phone etc.
- We are creating a REST (Representational State Transfer) service.
- Web API builds the Http Services and it handles the request (GET,POST, PUT,DELETE) through the http protocols.
- Web API support MVC features like controller, media formatters , routing etc.
- Web Api Represent two type of data format JSON & XML.
Defined Architecture
Uses(When we should have to choose web api in our application):
- When you want a servic0e which have all the HTTP features such as request header,response header ,URIs versioning in this case you can use the web api.
- When we have a requirement to use the HTTP services to a broad range of clients like Mobile phone, iPhone and other browsers etc.
What is WCF(windows communication foundation)
Basically wcf is a framework who creates a service oriented application , it is hosted on IIS , and it works for the send the data from one end point to another , It send the data asynchronously , wcf provides the process for the secure business transaction,It includes exchanging the data from their service.
Uses
- When we want to service which supports one way messaging , message queues , duplex communication etc
- When we want a service which uses fast transport channel such as TCP,UDP,Namedpipe etc.
Thanks guys I hope u like this post it will quite helpful for begginers who are looking for this in simple and understanding way



0 comments:
Post a Comment