Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 640.8k

Web Service Problem

Dec 17 2011 2:28 AM
Hi 
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>
/// Summary description for WebService
/// </summary>
[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";
    }
}














Answers (2)