WCF service with asp.net mvc application

I started using asp.net MVC and as a traditional way to maintain data access level in WCF service. How can I achieve this using asp.net MVC?

Scenario

I started a test application in asp.net MVC that displays, inserts and edits data. I successfully created this by adding the "ADO.Net Entity Data Model".

So, if I wanted to move this data level in the WCF service, that is, the WCF service with methods such as GetData (), UpdateData (), CreateNewData (), how can I achieve this?

+35
asp.net-mvc wcf
Jun 03 '09 at 8:47
source share
2 answers

Short answer:

You just need to move your data layer to the WCF service, expose it, and then call MVC from your application.

Long answer:

1) I recommend going through Scott Guthrie Nerd Dinner to get a really good understanding of the basics of MVC.

2) The following blog goes through the process of writing a multi-level ASP.NET MVC Applicaiton using the WCF service (parts III and IV are specifically focused on the interaction of WCF and MVC):

I have not read the related details in detail (just removed them), but they seem to provide a decent overview of the process.

+51
Jun 03 '09 at 10:57
source share
-one
Nov 22 '14 at 6:55
source share



All Articles