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, 6:31 AM
Nice Article
salim skPosted Aug 10, 2018, 7:15 AM
Very compact explanation....
Inżynier UmairPosted May 2, 2018, 2:21 PM
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 28, 2017, 1:25 AM
Really Nice........
Ravitheja GPosted Aug 7, 2017, 3:30 AM
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, 6:23 AM
thank u all :)
Ano MepaniPosted Jun 27, 2015, 7:38 AM
very well explained
Bruno PétersonPosted Jun 20, 2015, 6:24 AM
Very good! Thank you for sharing it.
Jitendra KumarPosted Jun 2, 2015, 9:01 AM
Nice Article.
Madhuri MishraPosted May 25, 2015, 4:26 AM
Thanks friends :)
Arvind PandeyPosted May 25, 2015, 4:15 AM
nice post
Ekona PikinPosted May 19, 2015, 10:49 AM
This lady Madhuru Mishra is just great,is Madhuri Dixit the popular movie start related to you?
pappu rayPosted May 18, 2015, 4:46 AM
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, 7:38 AM
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, 8:48 AM
Superb Article & Nice Way of Explanation Web API
Deepak KaushikPosted May 7, 2015, 7:13 AM
This is a great article Madhuri, thanks for posting such a wonderful facts.
Ritesh kumarPosted May 7, 2015, 6:13 AM
Good one..
Sathish KumarPosted May 5, 2015, 2:15 PM
Congrats madhuri
Madhu KumarPosted May 5, 2015, 8:47 AM
Great one
Dharmendra YadavPosted May 5, 2015, 6:34 AM
I am new in Asp.net Web API. Can you provide step by step guide or videos ?
Anil KumarPosted May 5, 2015, 2:59 AM
" - 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, 10:26 PM
Good Article. Mishra, can I know the self host of WEB API.
Guest UserPosted May 4, 2015, 9:08 PM
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, 1:57 PM
Good one
K P Singh ChundawatPosted May 4, 2015, 1:48 PM
Today finally my confusion is clear many thanks Madhuri Mishra ..
Manish JainPosted May 4, 2015, 1:25 PM
Nice Article Madam ! Thanks a lot !
NitinPosted May 4, 2015, 12:53 PM
good one
Abhishek JaiswalPosted May 4, 2015, 12:49 PM
Informative! :)
Max RBPosted May 4, 2015, 10:36 AM
Excellent post, and may I say you are beautiful :)
Saroj Kumar SahuPosted May 4, 2015, 8:16 AM
Nice one. keep posting :)
Manish Kumar ChoudharyPosted May 4, 2015, 6:58 AM
Good one.
Madhuri MishraPosted May 4, 2015, 5:29 AM
Thank u all :)
Ravi PatelPosted May 4, 2015, 12:45 AM
excellent work thanks for sharing
Santhakumar MunuswamyPosted May 3, 2015, 11:42 PM
Thanks for nice article
Manoj KulkarniPosted May 3, 2015, 10:57 PM
Nice article
Gowtham RajamanickamPosted May 3, 2015, 10:47 PM
good