[WebMethod(Description = "This is my Sample class")]
public class Sample
{
............
............
}
Pretty certain you need to add the webmethod declarations.
[WebMethod(Description = "This is my Sample class")]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public class Sample
{
............
............
}