views:

608

answers:

4

I'm architecting an web based application which will make use of web services. It has been recommended that I look into the use of the ASP.NET MVC Framework. All of the information I'm finding on the MVC discusses it's use with web pages, but I have found nothing regarding web services. Can the MVC be used for web services? and if so, where might I find resources to support my research effort?

Thanks C

+5  A: 

ASP.NET MVC can be used to create REST web services. For SOAP, you should stick to standard Web Services.

ifwdev
Wat he said. :)
eduncan911
A: 

In order to dispaly data, You could use the mvc built in "JsonResults" to return all kind of entitles or collections in json format, I find it very practice. If you need some more options I recommend you to use WCF instead of Web Service.

Shay

Shay Jacoby
+2  A: 

MVC is a UI design pattern. It is not a natural fit to web services.

John Saunders
A: 

It's not clear from your question whether you're building a web application that has a web service component, or just a web service. Web services, strictly speaking, don't have user interfaces, so the MVC model wouldn't directly apply. But there's really no substitute for thinking through what you're trying to do in a straightforward way. Architecture patterns can help, but they're only guides. It sounds like you're still feeling your way around, so don't think too much about these sorts of patterns at this stage: figure out what needs to be done and find out what technologies would be best suited to do it with. The overall architecture will emerge eventually.

Adam