It is very simple to host the WCF data service in a WinForms application (or in my case a unit test).
// add reference to System.Data.Services // identify your endpoint uri Uri endpoint = new Uri("http://localhost:12345/MyDataService"); // create the data service host DataServiceHost host = new DataServiceHost(typeof(MyDataService), new Uri[] { endpoint });
source share