WPF MVVM - Correct way to consume a web service asynchronously
Posted
by byte
on Stack Overflow
See other posts from Stack Overflow
or by byte
Published on 2010-05-17T15:16:17Z
Indexed on
2010/05/17
15:20 UTC
Read the original article
Hit count: 209
I have implemented MVVM in my WPF application. I was wondering what is the correct way to consume a Web Service from WPF MVVM app.
So far, I have created a DataAccess interface and a class that implements this interface. This would serve as a facade / proxy to the web service. The ViewModel gets a reference to this class as the constructor parameter so it can make any calls to get/set data, in this case it will be a Web service call. I would appreciate if you can guide me with some hints and / or direct me to some online resource.
© Stack Overflow or respective owner