I am query for a long time now.Where exactly we need to use WEB API and where should we use WCF restful services. What ever we want to achieve in WEB API we are able to achieve in WCF Rest. I tried to dig into answers but i got we need to do extra setting in wcf like URI templates,Contracts,endpoints. But its more on settings , but I wanted to known the real reason behind using WCF Restful Services.
相关问题
- Register MicroServices in Azure Active Directory (
- PromptDialog Choice with List object Bot Framework
- Dotnet Core API - Get the URL of a controller meth
- Serving data with “transfer-encoding: chunked” on
- StringEnumConverter invalid int values
相关文章
- POSTing data to WebApi after update to 5.1.0 fails
- Can you use generic methods in a controller?
- Remove a route with IOperationFilter in SwashBuckl
- Validate fails in unit tests
- subdomain CORS in webApi 2
- Post Array Json to .net core web api controller [d
- How can I read JSON from a StringContent object in
- Add claims with Owin Middleware
Web Service
WCF
WCF REST
webHttpBindings
.[WebGet]
and[WebInvoke]
attributes respectively..svc
files.WebGet
needs configuration. TheUriTemplate
must be specified.Web API
MediaTypeFormatter
into JSON, XML or whatever format you want to add as aMediaTypeFormatter
.Choosing between WCF or Web API
For more details you can refer to http://www.c-sharpcorner.com/UploadFile/8a67c0/who-is-winner-web-api-or-wcf/.