Articles → ASP .NET WEB API → Difference Between WCF And Web API
Difference Between WCF And Web API
WCF | Web API |
---|
WCF returns XML data | Web API returns data either in XML or JSON format. |
WCF supports various protocols like TCP, HTTP, Named pipes and MSMQ | Web API supports HTTP protocol only. |
WCF could be hosted using console application, IIS and windows service | Web API could be hosted on IIS only. |
WCF comes as a project template with visual studio. | Web API is an open source and could be downloaded. |