WCF/WF - Web API VS WCF - Asked By karur krishna madhu on 24-Mar-14 02:17 AM

What is the use of web api? when to use web api and when to use wcf? Is web api the new technology name Over WCF? Is wcf dead?
Robbe Morris replied to karur krishna madhu on 24-Mar-14 09:19 AM
When you search in google for articles explaining the difference, what did you find?
karur krishna madhu replied to Robbe Morris on 25-Mar-14 08:42 AM
I found that web api uses rest based with xml or json as the data exchange.My question is When we can do the same with wcf service . what is the need of web api and what advantage that it has ?
Robbe Morris replied to karur krishna madhu on 25-Mar-14 09:19 AM
Think of WebAPI as a simplified version of WCF.  WCF is far more sophisticated and powerful and some guys don't need that for their particular app and find creating a WCF service too much work to create and work with.  WebAPI has limitations and I would argue is best suited for simply querying operations.
karur krishna madhu replied to Robbe Morris on 26-Mar-14 02:34 AM
So my understanding is just connect to a service with out much fuss we go for web API. where as wcf gives more broader connectivity for the enterprise level applications.
Robbe Morris replied to karur krishna madhu on 26-Mar-14 07:50 AM
I wasn't making a recommendation.  Just explaining the differences.  Applications evolve over time and I don't like to constrain them.  For me, there is no reason for WebAPI.  So, I always go WCF.
karur krishna madhu replied to Robbe Morris on 27-Mar-14 01:53 AM
Yes . correct Morris.