public static void Main() { var channel = new ChannelFactory<IContract>(new BasicHttpBinding(), "http://localhost:4000/IContract").CreateChannel(); var response = channel.Say("Hello"); Console.WriteLine(response); Console.ReadLine(); }