client ----> .NET class libray-----> Secured Web Services
1. Created a WebService
2. Create a Class Library and add web reference (#1) per suggested here.
http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/ecb63966-eda7-4cfb-b417-2328b3a1abed
I did this in the Class Library
public class MyWebServiceWrapper
{
private MyWebService obj = new MyWebService();
public MyWebServiceWrapper()
{
obj.Url = ConfigurationManager.AppSettings["MyUrl"];
}
public void WebMethodA() //same name as in the web services
{
obj.WebMethodA();
}
}
I did this in the client (test client is winform). (by the way, system.web.services is deleted from reference)
MyWebServiceWrapper obj = new MyWebServiceWrapper();
datagridview.datasource = obj.WebMethodA(); - GETTTING THIS ERROR "cannot implicitly convert void to object
What to do?????????????????????????????????