Hello Friend
you have some thing wrong idea about web service..
please refer this...
Your first C# Web Service[
^]
ASP.NET Web Service[
^]
What is Web Service?[
^]
And what you need is that you have created two classed named A and B and you want to access that class method or variable declared inside that class...
so first of clear in your mind that you can access a web method declared inside your web service..
so for accessing method declared inside class A you need to declare a web method that will call that method declared inside class A like this you need to call your class method...
and there is no limit to declare multiple classes inside web service...
call your method like this...
Inside Web service declare web method
[Web Method]
public void callAMethod()
{
A obja = new A();
return obja.Display();
}
Class A
{
public void Display()
{
}
}