With the following points I will try to resolve the confusion between choosing the Web API and other services like web services, WCF and WCF REST.
Suppose there is one situation in which you need to display your app project data, not only in a browser, but in mobile, iPhone, tablets devices and so on for a broad reach of all clients. In other words, your project must be compatible with all these devices. 
Then what will you use?
- Will I use a web service for this? No.
The reason for not using:
- Supports only XML, if I need any other format then there will be an issue
- Very complicated to use
- Will take lots of RAM
- Uses complicated SOAP
- I don't need SOAP since SOAP will only support a post request, in my project I also need a get request
- I can host it only on IIS
- Will I use WCF for this? No.
Reason for not using:
- Very complicated configuration
- Uses complicated SOAP
- I don't need SOAP
- Will I use WCF REST for this ? No.
Reason for not using:
- Supports only JSON, XML and atom formats (atom is use for web feeds).
- This may work for my requirements, but it is also very complicated since I need to do lots of configuration in my project and on IIS also.
- Will I use Web API?
Yes, I will use the Web API.
Reason for using the Web API:
- Supports JSON, plain XML or any format that HTTP supports using content negotiation and media type formatter
- It is very simple to use
- No need to describe your data, if you want you can provide PDF format
- Supports HTTP full functionality
- It also supports MVC features such as applying filters before or after executing an action just like MVC can
- Due to the HTTP service it can be broadly reached by all clients.

- The Web API is created with HTTP functionality in mind, since using this HTTP protocol, anything is broadly accessible (anything means like any image or any HTML static page and so on).
- Now a days, users are not limited to browsers only, they want to use their app in mobile, Android, tablets and so on. So the Web API is a good fit for this.
- The Web API automatically gains all the power of HTTP.
- Gaining all the power of HTTP means, gaining its caching, gaining its all action method like, get, post, put and delete and so on.
- The Web API structure is similar to MVC, so if my project is in MVC then it will be a good choice for me to create a HTTP service in the Web API.

- The preceding figure explains that let's say, my project is in MVC and it uses the Web API that has the power of HTTP and due to that power it can easily communicate with different browsers, iPhone, Android, Laptop and so on.


Lalit RaghavPosted Aug 14, 2018, 2:31 AM EDT
Nice Article
salim skPosted Aug 10, 2018, 3:15 AM EDT
Very compact explanation....
Inżynier UmairPosted May 2, 2018, 10:21 AM EDT
Neat and Clean explanation .. Thank you so much .. i was really confusing about this.. but one question i would like to ask is that how can i use web api in aspx pages. i mean i created a project in asp.net web form not in mvc so how do i manage web api with webforms ? Please reply mam.
Chandrasekhar PurimitlaPosted Dec 27, 2017, 8:25 PM EST
Really Nice........
Ravitheja GPosted Aug 6, 2017, 11:30 PM EDT
Nice Article .we can't say no to WCF REST that can be used across all mobile apps and web applications.Some effort we need to put on Configuration.It also supports HTTP .There are lot of other factors involved in deciding which one to use.
Madhuri MishraPosted Jul 9, 2015, 2:23 AM EDT
thank u all :)
Ano MepaniPosted Jun 27, 2015, 3:38 AM EDT
very well explained
Bruno PétersonPosted Jun 20, 2015, 2:24 AM EDT
Very good! Thank you for sharing it.
Jitendra KumarPosted Jun 2, 2015, 5:01 AM EDT
Nice Article.
Madhuri MishraPosted May 25, 2015, 12:26 AM EDT
Thanks friends :)
Arvind PandeyPosted May 25, 2015, 12:15 AM EDT
nice post
Ekona PikinPosted May 19, 2015, 6:49 AM EDT
This lady Madhuru Mishra is just great,is Madhuri Dixit the popular movie start related to you?
pappu rayPosted May 18, 2015, 12:46 AM EDT
hi, nice post. Theoretically cleared. if you can give one simple example, then i will be grateful to you. And Please do post and share this kind of stuffs
Akhil MittalPosted May 12, 2015, 3:38 AM EDT
First of all, very nice presentation :-). I wanted to know that can I host Web API on Linux? if yes how? Any reference would also be helpful.
Raj Kumar SepatPosted May 8, 2015, 4:48 AM EDT
Superb Article & Nice Way of Explanation Web API
Deepak KaushikTOP 100Posted May 7, 2015, 3:13 AM EDT
This is a great article Madhuri, thanks for posting such a wonderful facts.
Ritesh kumarPosted May 7, 2015, 2:13 AM EDT
Good one..
Sathish KumarPosted May 5, 2015, 10:15 AM EDT
Congrats madhuri
Madhu KumarPosted May 5, 2015, 4:47 AM EDT
Great one
Dharmendra YadavPosted May 5, 2015, 2:34 AM EDT
I am new in Asp.net Web API. Can you provide step by step guide or videos ?
Anil KumarPosted May 4, 2015, 10:59 PM EDT
" - I can host it only on IIS" I think it is not true. WSE enables ASP.NET Web services to be hosted in console applications, Windows services, COM+ components or Windows Forms applications. "- Uses complicated SOAP" it is not SOAP but XML?
janardhan reddyPosted May 4, 2015, 6:26 PM EDT
Good Article. Mishra, can I know the self host of WEB API.
Guest UserPosted May 4, 2015, 5:08 PM EDT
Nice article and good pictorial representation. I agree JSON is simple over XML, but at certain cases XML is still preferred where we want stringent rules over Data Format. Yes WebAPI + JSON is widely adopted in SPA architecture etc.
Karthik Muthu KaruppanPosted May 4, 2015, 9:57 AM EDT
Good one
K P Singh ChundawatPosted May 4, 2015, 9:48 AM EDT
Today finally my confusion is clear many thanks Madhuri Mishra ..
Manish JainPosted May 4, 2015, 9:25 AM EDT
Nice Article Madam ! Thanks a lot !
NitinPosted May 4, 2015, 8:53 AM EDT
good one
Abhishek JaiswalPosted May 4, 2015, 8:49 AM EDT
Informative! :)
Max RBPosted May 4, 2015, 6:36 AM EDT
Excellent post, and may I say you are beautiful :)
Saroj Kumar SahuPosted May 4, 2015, 4:16 AM EDT
Nice one. keep posting :)
Manish Kumar ChoudharyPosted May 4, 2015, 2:58 AM EDT
Good one.
Madhuri MishraPosted May 4, 2015, 1:29 AM EDT
Thank u all :)
Ravi PatelPosted May 3, 2015, 8:45 PM EDT
excellent work thanks for sharing
Santhakumar MunuswamyPosted May 3, 2015, 7:42 PM EDT
Thanks for nice article
Manoj KulkarniPosted May 3, 2015, 6:57 PM EDT
Nice article
Gowtham RajamanickamTOP 100Posted May 3, 2015, 6:47 PM EDT
good