Beispiel #1
0
        public void SetPublicity(string s)
        {
            MyTranslatorClient svcT       = new MyTranslatorClient();
            string             translated = svcT.Translate(s, language);

            _syncCtx.Post(state => publicityPanel.AppendText(translated + "\n"), null);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Service1Client svc = new Service1Client("BasicHttpBinding_IService1", "http://localhost:1759/WebSite1/Service1.svc");
            Console.WriteLine(svc.DoWork("call ws1"));
               svc = new Service1Client("BasicHttpBinding_IService1", "http://localhost:1760/WebSite2/ServiceWs2.svc");
            Console.WriteLine(svc.DoWork("call ws2"));

            Console.Write("frase em portugues?");
            string frase = Console.ReadLine();
            MyTranslatorClient svcT = new MyTranslatorClient();
            Console.WriteLine(svcT.TranslatePortIngles(frase));
        }