Is it True that ASP.NET Web API has Replaced WCF?

Technology CommunityCategory: ASP.NET Web APIIs it True that ASP.NET Web API has Replaced WCF?
VietMX Staff asked 3 years ago

It’s a misconception that ASP.NET Web API has replaced WCF. It’s another way of building non-SOAP based services, for example, plain XML or JSON string, etc. Yes, it has some added advantages like utilizing the full features of HTTP and reaching more clients such as mobile devices, etc.

But WCF is still a good choice for the following scenarios:

  • If we intended to use transport other than HTTP, e.g. TCP, UDP or Named Pipes
  • Message Queuing scenario using MSMQ
  • One-way communication or Duplex communication