Troj
Troj

Reputation: 11911

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 returns a JSON object please do post them.

Upvotes: 0

Views: 1759

Answers (2)

Mani
Mani

Reputation: 33

Please go through the below blog to know How to add WCF service to MVC application (step by step procedure for simple sample).

Upvotes: 2

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364409

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.

Upvotes: 0

Related Questions