public string Somar(int num1, int num2)
        {
            var serv      = new ServicoWS.CalculatorSoapClient();
            var resultado = serv.AddAsync(num1, num2).GetAwaiter().GetResult();

            return("" + resultado);
        }
示例#2
0
        public string Somar(int num1, int num2)
        {
            var serv = new ServicoWS.CalculatorSoapClient();

            return("Resultado WS SOAP:" + serv.AddAsync(num1, num2).GetAwaiter().GetResult().ToString());
        }