//BusinessLogicMethod() is not exposed to the public to use
//(because it is not declared as a Web method),
//but WebServiceMethod() is.
//All you have to do is extend the WebService class and identify which methods are Web service //methods using the WebMethod attribute
//using System.Web.Services;
public class AWebService : WebService
{
public AWebService
{
// constructor code
}
public void BusinessLogicMethod() {
// code here
}
[WebMethod(Description="A Web Method", EnableSession=false)]
public int WebServiceMethod()
{
// code here
}
}
|