none
How to access Data from the web

    Question

  • What is the "recommended" way to access data from my database via EF on my webserver from a metro c# app?  I am trying to use WCF Data Services, but have read that is not supported. 

    Microsoft could you please tell us how we should do this?  The videos at build were showing bits that we do not have.

    Thanks.


    Thanks, Terrence
    Wednesday, December 14, 2011 5:37 PM

Answers

  • You can use HttpClient to download pretty much anything from the web.

    Why don't you configure your WCF service to return data as JSON, and use the DataContractJsonSerializer to deserialize the results?

    • Marked as answer by Terrence_ Thursday, December 29, 2011 11:50 PM
    Wednesday, December 14, 2011 6:27 PM

All replies

  • You can use HttpClient to download pretty much anything from the web.

    Why don't you configure your WCF service to return data as JSON, and use the DataContractJsonSerializer to deserialize the results?

    • Marked as answer by Terrence_ Thursday, December 29, 2011 11:50 PM
    Wednesday, December 14, 2011 6:27 PM
  • I was stuck in a rut on using the WCF Data Services client.  Thanks for giving me some ideas Morten.
    Thanks, Terrence
    Wednesday, December 14, 2011 8:40 PM