using System; using System.ServiceModel; using TestServiceInterface; namespace myWcfClient { public class cli { public static void Main() { ChannelFactory mycf = new ChannelFactory( new BasicHttpBinding(), new EndpointAddress("http://localhost:9000/myWcfService")); ImyService wcfcli = mycf.CreateChannel(); Console.WriteLine("Calling GetData(33) returns:\n{0}", wcfcli.GetData(33)); } } }