// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; using System.Diagnostics; using System.ServiceModel; using System.ServiceModel.Description; using Ws.Rest; namespace Demo { public class Program { public static readonly Uri URL = new Uri("http://localhost:8083/testapi"); public static void Main(string[] args) { // netsh http add urlacl url=http://+:8083/testapi user=ARNE using (ServiceHost host = new ServiceHost(typeof(TestService), URL)) { host.Open(); Console.ReadKey(); host.Close(); } } } }