static void Main(string[] args) { HelloWorldServiceClient client = new HelloWorldServiceClient(); Console.WriteLine(client.GetMessage("Mike Liu")); client.Close(); Console.ReadKey(); }
static void Main(string[] args) { HelloWorldServiceClient client = new HelloWorldServiceClient(); Console.WriteLine(client.SayHello("don fernando")); client.Close(); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldServiceClient client = new HelloWorldServiceClient(); Console.WriteLine("Write your nickname: "); string name = Console.ReadLine(); Console.WriteLine("Waiting for response from service..."); Console.WriteLine(client.SayHelloWorld(name)); client.Close(); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldServiceClient client = new HelloWorldServiceClient(); Console.WriteLine(client.Greet(new Person { Name = "Roger" })); client.Close(); ProductServiceClient client2 = new ProductServiceClient(); Console.WriteLine(client2.GetPrice(new Product { Name = "potato", Price = 0.55 })); client2.Close(); Console.ReadLine(); }