Q
Quan
My web service and client are trying to send objects of a
user defind class.
There are 3 projects in my solution:
1)BusinessObject -->contains a LoginRequest class
2)MyWebService -->contains a web service class
LoginManager
public bool Login( LoginRequest userlogin)
3)MainClient -->calls the web service. (web service name
is localhost)
public static bool Login(LoginRequest userlogin)
{
localhost.LoginManager ws=new localhost.LoginManager()
ws.Login(userlogin)
}
I got the compile error :
value of BusinessObject.LoginRequest can not be convert
to localhost.LoginRequest...
Could someone help?
Thanks
user defind class.
There are 3 projects in my solution:
1)BusinessObject -->contains a LoginRequest class
2)MyWebService -->contains a web service class
LoginManager
public bool Login( LoginRequest userlogin)
3)MainClient -->calls the web service. (web service name
is localhost)
public static bool Login(LoginRequest userlogin)
{
localhost.LoginManager ws=new localhost.LoginManager()
ws.Login(userlogin)
}
I got the compile error :
value of BusinessObject.LoginRequest can not be convert
to localhost.LoginRequest...
Could someone help?
Thanks