|
Answer» Web API is considered the best choice over WCF because of the following reasons: - Web API uses all features of HTTP such as URIs, request/response headers, caching, versioning, various CONTENT formats, etc.
- One does not have to define or explain any extra config setting for different devices in Web API.
- Web API uses different TEXT formats including XML because of which it is faster and more preferred for LIGHTWEIGHT services.
- Web API also supports MVC features WHEREAS WCF does not support MVC features.
- Web API provides more flexibility as compared to WCF.
- Web API uses standard security LIKE token authentication, basic authentication, etc., to provide secure service whereas WCF uses WS-I standard to provide secure service.
|