Saturday, August 16, 2014

Difference between web api ,Wcf and asmx

Web API embraces HTTP and gives you flexibilities not possible with ASMX and WCF. If you care about HTTP, content-negotiation, media types and you need your service to be called from any client (including AJAX) then Web API.
If you need to be able to use WS* security standards (e.g. using X509 certificates, ADFS, etc), possibly change your binding, serve to different clients using different bindings, extensibility, etc use WCF.
If you already have a working code, and all you care about is RPC and your clients are always going to use ASMX then stick with ASMX.

Performance

No benchmark but my gut feeling, in descending order: Web API, ASMX, WCF

Easier

In descending order: ASMX (since you know it), Web API, WCF

Faster development

If you know them all, Web API and ASMX then WCF

No comments:

Post a Comment

http://blogsiteslist.com