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(); }
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(); }