What to choose between WCF or WEB API..?
-
Choose WCF when you want to create a service that should support special scenarios such as one way messaging, message queues, duplex communication etc. while we need to choose web API. When you want to create a resource-oriented service over HTTP that can use the full features of HTTP (like URIs, request/response headers, caching, versioning, various content formats)
-
Choose WCF whenever you want to create a service that can use fast transport channels when available, such as TCP, Named Pipes, or maybe even UDP (in WCF 4.5), and you also want to support HTTP when all other transport channels are unavailable. While we need to choose Web API when you want to expose your service to a broad range of clients including browsers, iPhone, mobiles and tablets.