ASP .NET MVC 3 and a Dataservice
I'm looking for an example of an mvc site using a dataservice to execute it's business logic and database calls. Can anybody help me?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jun 12, 2012, 11:59 PM
Please refer
The following blog goes through the process of writing a Layered ASP.NET MVC Applicaiton with a WCF Service (Parts III & IV specifically concentrate on WCF & MVC interaction)
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-ii/
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-iii/
http://sankarsan.wordpress.com/2009/04/12/a-layered-aspnet-mvc-application-part-iv/
hope this will help you.
Jignesh TrivediPosted Jun 13, 2012, 11:31 PM
Data Services are best when you are exposing your data model and associated logic through a RESTful interface; it includes a full implementation of the Open Data (OData) Protocol for .NET.
The major difference is that Web Services Use XmlSerializer. But WCF Uses DataContractSerializer which is better in Performance as compared to XmlSerializer.
Web Services can be accessed only over HTTP & it works in stateless environment, where WCF is flexible because its services can be hosted in different types of applications. Common scenarios for hosting WCF services are IIS,WAS, Self-hosting, Managed Windows Service.
Please Refer
http://msdn.microsoft.com/en-us/library/aa738737.aspx
hope this will help you.
Olivier MuhringPosted Jun 13, 2012, 8:34 AM
However... I'm expected to use dataservices.
What is the difference between a webservice and a dataservice?