Good for overload:
[WebMethod(MessageName = "MaxInt", Description = "Compare two int values
and return the max value", EnableSession = true)]
public int MaxValue(int a, int b)
{
return (a > b ? a : b);
}
[WebMethod(MessageName = "MaxFloat", Description = "Compare two float values
and return the max value", EnableSession = true)]
public float MaxValue(float a, float b)
{
return (a > b ? a : b);
}
What do you mean by authentication? Obviously, you can use the validation key to access the web service. The question is confused. Make sure please.
source
share