static void Main(string[] args) { Proxy_Hello.HelloServiceClient proxy = new HelloServiceClient("BasicHttpBinding_IHelloService"); string str = proxy.HelloMessage(); Console.WriteLine(" Got Message from HelloService:" + str); Console.ReadLine(); }