对生物识别设备使用 WCF 服务或 ASP.NET Web api?

Use WCF Service or ASP.NET Web api for biometric device?

我有一个 asp.net MVC4 中的 Web 应用程序 (HRMS) 和一个连接到生物识别设备的 Windows 表单(稍后在 windows 服务中转换)。所以问题是我应该使用 WCF 服务还是 asp.net 网络 api 来发送出勤数据?
提前致谢

前往 ASP.NET 网站 API。

Use WCF to create reliable, secure web services that accessible over a variety of transports. Use ASP.NET Web API to create HTTP-based services that are accessible from a wide variety of clients. Use ASP.NET Web API if you are creating and designing new REST-style services. Although WCF provides some support for writing REST-style services, the support for REST in ASP.NET Web API is more complete and all future REST feature improvements will be made in ASP.NET Web API. If you have an existing WCF service and you want to expose additional REST endpoints, use WCF and the WebHttpBinding.

最好继续使用 WebAPI,因为它看起来更适合进一步构建真正的 RESTfull 服务开发。 WCF 最初是为了启用基于 SOAP 的服务而创建的。对于更简单的 RESTful 或 RPCish 服务(认为客户喜欢 jQuery) ASP.NET Web API 应该是不错的选择.