ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Difference between Web Service (ASMX), WCF REST (SVC) and Web API<p>Refer the below link for your reference.</p> <h1><a class="question-hyperlink" href="https://stackoverflow.com/questions/11643072/should-it-be-a-webapi-or-asmx">Should it be a WebAPI or asmx</a></h1>https://www.aspforums.net:443/Threads/652697/Difference-between-Web-Service-ASMX-WCF-REST-SVC-and-Web-API/https://www.aspforums.net:443/Threads/652697/Difference-between-Web-Service-ASMX-WCF-REST-SVC-and-Web-API/Mon, 19 Mar 2018 00:56:35 GMTDifference between Web Service (ASMX), WCF REST (SVC) and Web API<h2><strong><span style="text-decoration: underline;">Web Service (.asmx)</span></strong></h2> <ul> <li>It is based on SOAP and return data in XML form.</li> <li>It support only HTTP protocol.</li> <li>It is not open source but can be consumed by any client that understands xml.</li> <li>It can be hosted only on IIS.</li> </ul> <h2><span style="text-decoration: underline;"><strong>WCF (.svc)</strong></span></h2> <ul> <li>It is also based on SOAP and return data in XML form.</li> <li>It is the evolution of the web service(ASMX) and support various protocols like TCP, HTTP, HTTPS, Named Pipes, MSMQ.</li> <li>The main issue with WCF is, its tedious and extensive configuration.</li> <li>It is not open source but can be consumed by any client that understands xml.</li> <li>It can be hosted with in the applicaion or on IIS or using window service.</li> </ul> <h2><span style="text-decoration: underline;"><strong>Web API</strong></span></h2> <ul> <li>This is the new framework for building HTTP services with easy and simple way.</li> <li>Web API is open source an ideal platform for building REST-ful services over the .NET Framework.</li> <li>Unlike WCF Rest service, it use the full feature of HTTP (like URIs, request/response headers, caching, versioning, various content formats)</li> <li>It also supports the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection, unit testing that makes it more simple and robust.</li> <li>It can be hosted with in the application or on IIS.</li> <li>It is light weight architecture and good for devices which have limited bandwidth like smart phones.</li> <li>Responses are formatted by Web API&rsquo;s MediaTypeFormatter into JSON, XML or whatever format you want to add as a MediaTypeFormatter.</li> </ul> <p>Reference: <a href="https://stackoverflow.com/questions/43775132/difference-between-wcf-and-web-api-and-wcf-rest-and-web-service">StakOverFlow</a></p> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/652697/Difference-between-Web-Service-ASMX-WCF-REST-SVC-and-Web-API/https://www.aspforums.net:443/Threads/652697/Difference-between-Web-Service-ASMX-WCF-REST-SVC-and-Web-API/Mon, 19 Mar 2018 04:25:08 GMT