32

I want to use WCF RIA SERVICES in my WPF application.

but WCF RIA SERVICES client only surport silverlight and ASP.NET now, how can I use it in WPF application?

leppie
  • 115,091
  • 17
  • 196
  • 297
hesion
  • 321
  • 1
  • 3
  • 4
  • 3
    possible duplicate of [How do I do client-side validation in WPF using WCF RIA Services](http://stackoverflow.com/questions/2798631/how-do-i-do-client-side-validation-in-wpf-using-wcf-ria-services) – Shimmy Weitzhandler Nov 20 '11 at 03:47
  • 1
    Brad Abrams did a blog on it a while back, I don't know how much has changed in the beta though. [Blog](http://blogs.msdn.com/brada/archive/2009/07/17/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-8-wcf-based-data-source.aspx) - RIA services blogs series [here](http://blogs.msdn.com/brada/archive/2009/08/02/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-summary.aspx). – lancscoder Mar 31 '10 at 08:01
  • I try to look for some informations earlier, but there is no samples about WPF use WCF RIA SERVICES. And I have send him a Email, but it seems too busy to response me. – hesion Mar 31 '10 at 08:45
  • There's a sample app that you can download in his blog if that helps but I'm far from a RIA Services expert. – lancscoder Mar 31 '10 at 09:34
  • 1
    I've done a complete sample consuming the SOAP endpoint of WCF RIA Services from a WPF Applications (handling also the authentication cookie for authenticated calls) : http://blogs.msdn.com/b/davrous/archive/2010/12/03/how-to-open-a-wcf-ria-services-application-to-other-type-of-clients-the-soap-endpoint-3-5.aspx Hope it helps. Regards, David Rousset – David Rousset Feb 21 '11 at 12:44
  • Honestly, from experience, I think WCF RIA services are unwieldy and will ultimately cause you more problems than they solve. Try using a simple REST-based web framework, such as ServiceStack. – theMayer Oct 18 '12 at 21:14

2 Answers2

3

Here is the link describe the RIA servicive for WPF application http://blogs.msdn.com/b/davrous/archive/2010/12/03/how-to-open-a-wcf-ria-services-application-to-other-type-of-clients-the-soap-endpoint-3-5.aspx I think this is useful for you

Alex Nguyen
  • 1,032
  • 12
  • 27
2

You have to use RIA Services toolkit. It can be downloaded from here. After installing it, you can expose JSON, SOAP endpoints for your Domain Service. You can also use RIA Service with ASP.NET Dynamic data if you have the toolkit.

S. Ravi Kiran
  • 4,053
  • 3
  • 21
  • 26
  • Please correct me if I am wrong, but this toolkit was designed to work with Silverlight environment mostly and not other environments. It would be awesome if you could provide any sample code of this toolkit being used in other scenarios. Thanks – Alex G Aug 17 '15 at 16:40