Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            HelloWorldServiceClient client = new HelloWorldServiceClient();

            Console.WriteLine(client.GetMessage("Mike Liu"));
            client.Close();
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            HelloWorldServiceClient client = new HelloWorldServiceClient();

            Console.WriteLine(client.SayHello("don fernando"));
            client.Close();
            Console.ReadLine();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }