namespace TestOverloadingWebService
{
[WebService(Namespace = "http://tempuri.org/")]
public class OverloadingInWebService : System.Web.Services.WebService
{
[WebMethod(MessageName = "AddInt", EnableSession = true)]
public int Add(int a, int b)
{
return (a + b);
}
[WebMethod(MessageName = "AddFloat", EnableSession = true)]
public float Add(float a, float b)
{
return (a + b);
}
}
}