0

I have a WCF Service Application hosted in IIS. This service queries clients on our network for WMI data on demand. I would like to consume this data in my Lightswitch HTML application which is also hosted in IIS on the same server. Do i need to use a WCF RIA service? I have little to no knowledge of RIA. I looked into this tutorial and I'm not sure if this solution applies. The data that's being returned from my service isn't coming from a database. Any guidance on how to consume data from my WCF service in Lightswitch HTML would be greatly appreciated.

HiTech
  • 913
  • 1
  • 16
  • 34

1 Answers1

0

LightSwitch won't directly connect to a WCF service, but you could wrap it in:

a) a RIA service

b) an OData web api controller

Yann Duran
  • 3,842
  • 1
  • 24
  • 24
  • Do you know of any examples i can refer to for wrapping my WCF service in a RIA service? Is it as simple as making my queries from my RIA service? Any example or source code would be greatly appreciated. – HiTech Nov 02 '15 at 20:01
  • I don't have any examples of wrapping a WCF service sorry, but the idea is to create a *proxy* to your service that LightSwitch knows how to consume (a RIA Service or an OData Web Api Controller). In either of those you'd recreate the queries that your app needs, which then delegate to the WCF service. Does that help? – Yann Duran Nov 12 '15 at 02:35
  • I should have updated this sooner. I was able to get it working. thank you Yann. – HiTech Dec 01 '15 at 19:43