Hi,
I created a web service application using ASP.
My question is :
When i try to create an extra class in the same asmx file,At the time of
consuming the web service,its showing me only the default class only.
here is my code:
namespace WebService1
{
public class Service1 : System.Web.Services.WebService
{
public Service1()
{
InitializeComponent();
}
private IContainer components = null;
private void InitializeComponent()
{
}
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
#endregion
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
public class newClass : System.Web.Services.WebService
{
public newClass()
{
}
[WebMethod]
public string HelloWorld1()
{
return "Hello World";
}
}
}
***********************************************
In my other ASP apllication
"newclass" is not visible at all.Itz showing only Service1.
What to do if I need other class also.
********************************
Thank you.
Kris.