Creating a WCF service to a MVC webapplication
I wonder if there are some differences between creating a WCF service and an MVC web-application.
If you know of good links on how to create such a service for an MVC application that retur开发者_运维技巧ns a JSON object please do post them.
Please go through the below blog to know How to add WCF service to MVC application (step by step procedure for simple sample).
There is no difference in building WCF service for ASP.NET MVC. It is as any other REST service working with JSON. Check this article and included links.
The difference actually exists when you are building WCF service for ASP.NET AJAX (WebForms) because in that case you are adding support for ScriptManager by using EnableWebScript behavior instead of WebHttp behavior.
精彩评论