I am using Web service and i want to make an other class but when i am ruunig asmx file it is not showing me second class method can nay one tell me how can i do this............?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
///
/// Summary description for WebService
///
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// 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 WebService : System.Web.Services.WebService {
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
[WebMethod]
public string Name()
{
return "Smart Lucky";
}
}
class Test : WebService
{
[WebMethod]
public string Test1() {
return "This is method";
}
}

Smart LuckyPosted Dec 21, 2011, 12:35 AM
As per your suggestion i have make public this class and still it is not showing me method of Test class and also i have attached the image of "WebService.asmx" file , i am waiting for your replay....
Pankaj RanaPosted Dec 17, 2011, 2:55 AM