locked
Sending data to a web site. RRS feed

  • Question

  • I have worked through this very good introduction example: http://msdn.microsoft.com/en-us/library/ms734712.aspx.

    But now I want to extend this.

    I have a standalone C# Windows application where the user inputs data into forms that is stored in a database.  I want to use WCF to send this data to a web site.  The website will then store this data in its own database.

    Where can I find a tutorial to show me how to do this?

    Thanks

    Friday, March 11, 2011 10:56 AM

Answers

  • Since you are sending data over HTTP and then storing it in a database, you should consider using WCF Data Services to do this. WCF Data Services enables you to create WCF-based services that expose data from a database based in a URI-accessible data model. There is a WCF Data Services client that enables you to easily consume this data in your application. Because WCF Data Services speaks OData, you can also consume your data on other platforms, like devices, Silverlight, PowerPivot, etc...

    This quickstart shows how easy it is to do this by using Entity Framework for database access: http://msdn.microsoft.com/en-us/library/cc668796.aspx

    You can find more getting start info for WCF Data Services, including videos here: http://msdn.microsoft.com/en-us/data/ee720180

    OData info is here: http://www.odata.org/

    Cheers!

    Glenn Gailey


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Proposed as answer by Sidney H Friday, March 11, 2011 5:57 PM
    • Marked as answer by Yi-Lun Luo Thursday, March 17, 2011 9:02 AM
    Friday, March 11, 2011 5:21 PM