Reputation: 327
Before, I've published a web service on my host and it's used for my ASP.NET 1.0 web application. And now, I want to upgrade my web app into an ASP.NET MVC 3 (or 4) project, can or should I re-use my exist web service?
Thanks in advance for any ideas and suggestions!
Upvotes: 1
Views: 661
Reputation: 1038930
Yes, you can reuse existing web services. No problem at all. Just add a service reference and consume it from your MVC application. For example you could have an implementation of your repository which instead of hitting a database will instantiate the web service proxy and hit the web service to fetch the data.
Upvotes: 2