public string Somar(int num1, int num2) { var serv = new ServicoWS.CalculatorSoapClient(); var resultado = serv.AddAsync(num1, num2).GetAwaiter().GetResult(); return("" + resultado); }
public string Somar(int num1, int num2) { var serv = new ServicoWS.CalculatorSoapClient(); return("Resultado WS SOAP:" + serv.AddAsync(num1, num2).GetAwaiter().GetResult().ToString()); }