Professional Documents
Culture Documents
O Solution Explorer
System;
System.Collections.Generic;
System.Linq;
System.Web;
System.Web.Services;
namespace CalculadoraService
{
///
/// Summary description for Calculadora
///
[WebService(Namespace = http://tempuri.org/)]
[WebServiceBinding(ConformsTo =
WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script,
using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Calculadora : System.Web.Services.WebService
{
[WebMethod]
public Int32 Somar(Int32 valor1, Int32 valor2)
{
//realiza a soma e retorna o resultado.
return (valor1 + valor2);
}
[WebMethod]
public Int32 Subtrair(Int32 valor1, Int32 valor2)
{