Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                Proxy.ServicioClient proxy = new ServicioClient();
                proxy.ClientCredentials.UserName.UserName = "******";
                proxy.ClientCredentials.UserName.Password = "******";

                var r = proxy.GetData(10);

                Console.WriteLine(r);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.WriteLine("fin");
            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            try
            {
                Proxy.ServicioClient proxy = new ServicioClient();
                proxy.ClientCredentials.UserName.UserName = "******";
                proxy.ClientCredentials.UserName.Password = "******";

                var r = proxy.GetData(10);

                Console.WriteLine(r);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

            Console.WriteLine("fin");
            Console.ReadLine();
        }