Last post Oct 22, 2014 12:49 AM by Siva Krishna Macha
Oct 20, 2014 04:20 AM|ANILBABU|LINK
I'm going to get using WCF Web Api than WCF RESTful services. Is WCF RESTful services is enough for this job?
Plz tell me where i can use WCF Service,Rest based Service And Web api,
Oct 20, 2014 04:33 AM|AidyF|LINK
You can indeed just make WCF provide a REST service, google for "wcf restful service" for more detailed information. You don't need to move to web api to do this.
Oct 20, 2014 09:28 PM|Shawn - MSFT|LINK
About this situation, WCF is Microsoft’s unified programming model for building service-oriented applications. It enables developers to build secure, reliable, transacted solutions that integrate across platforms and interoperate with existing investments.
(ASP.NET Web APIis a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications
on the .NET Framework.
For choosing which technology to use, you could refer to the following links for more information:
Oct 21, 2014 11:46 PM|l.laxmikant|LINK
if your client communicates only with http or https protocol. It is better to switch to Web API. As it gives you lightweight output as compare to WCF SOAP output.
which helps you for performance.
it also requires less configuration and if your client has or will have calls from mobile, tablet should move to web api
if you have heterogeneous protocol communication like http, tcp, named pipe, msmq then better be with WCF services
for more info WCF REST and Web API check below urls
Oct 22, 2014 12:49 AM|Siva Krishna Macha|LINK
As you already have the WCF service that communicates through SOAP, I assume you have implemented all the security levels etc.
1. You can just enhance your endpoints with webHttp or enableWebScript behaviors.
a. webHttp if you want plain JSON,
b. enableWebScript is for ajax based.
2. Your DataContacts, OperationContracts should support Json message type.
However, as others have suggested, you can check WCF restful services in google to get more samples.
Hope this helps.