I m building Silverlight applicaitions using Prism and MVVM.
When calling WCF services on your own server, or even external webservices like the Bing api, would this be done from the Model? or from the ViewModel, thus making the service the Model?
I m building Silverlight applicaitions using Prism and MVVM.
When calling WCF services on your own server, or even external webservices like the Bing api, would this be done from the Model? or from the ViewModel, thus making the service the Model?
Yes. The View should only manage the transformation of data into user interface elements, the Controller should only orchestrate the interaction between views and model, and the remaining (business logic and data access, this one including calls to remote services) should be in the Model.
Sorskoot,
For your scenario, I create a Services class that interfaces with WCF. My ViewModels then interface with service.
Also, with silverlight introducing Silverlight 4, you may want to create your own models and use converters to convert the WCF objects going into your app so you have a level of separation. Plus you can start utilizing features such as IDataErrorInfo, INotifyPropertyChanged.
Search on Cinch. It s not Silverlight compatible but will give you an idea of what I m referring too. Look at DataWrappers.
I m trying to populate a Dojo grid with data from an ASP.Net web service. There is going to be a lot of rows, so I want to implement paging on the server side, so the web service will accept ...
I am trying to research error handling paradigms in web service client apps. I haven t found any good results on Google - perhaps I m not searching using the right terminology. I will describe my ...
I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...
I was asked a question in interview can there be 2 webmethods with same name inside a web service in c#. With function overloading it is possible but interviewer wanted an answer without using ...
I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...
I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.
I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...
I have as asp.net webserver that I hosted and I went to my mobile application I am building and made a web reference to it. So it finds it and stuff and now I can access the web methods because of ...