WCF REST Client Console App
The following is the console client, which consumes Rest Service: using System.Net; using System.IO; static void RestCall() { string baseUri = http://localhost:33987/MyService.svc/GetData/10 ; HttpWebRequest req = WebRequest .Create(baseUri) as HttpWebRequest ; HttpWebResponse resp = req.GetResponse() as HttpWebResponse ; var response = resp.GetResponseStream(); try { StreamReader streamReader = new StreamReader (response, true ); try { var target = streamReader.ReadToEnd(); Console .WriteLine(target); } finally { streamReader.Close(); } } finally { response.Close(); } } App.Config Entries: