Search code examples
c#wcfvisual-studio-lightswitchlightswitch-2012

Consume data returned from a WCF Service Application in HTML Lightswitch


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.


Solution

  • 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