We have been developing a silverlight app for the last couple of years. We have a large library base and much of it is reused on the ASP.Net MVC version which we have been developing for a month or so. So I created an MVC app and pretty much added the libraries from the Silverlight server app.
I would like to do a demo for the WP7 version of our app and was wondering what is the best way to reuse the libraries we already have? I was told that I could share files but with such a large library based, I do not want to go that way.
Would it be possible to expose the MVC app via WCF and then get access to the data in WP7 where I can then all the XAML views?
I do not have any experience on the architecture of WP7.
TIA
JD
What you could do is have the MVC app expose the data via a Controller (possibly returning it as json) which would be your "api".
WP7 would just need to make a web request to the api you’ve already made. WebClient should make this quite easy.
This way you wouldn’t need to use WCF.
Hope this helps.
Tony