The webservice that I am calling from my application has two methods.
XmlNode getCase(string parameter) // synchronous
void getCaseAsync(string parameter) //async
I can simply call method 1 and store the results in an xmlnode like this,
XmlNode node=webservice.getCase("test");
but I can not figure out how to get the result back from the async method returning void. I tried this but get an erorr:
IAsyncResult result = webservice.getCaseAsync(("test");
Any ideas?
Yes Brian you are right there is a "completed" event,that I already have implemented in my Form consturcor class like this,
webService.getCaseCompleted += new webService.getCaseCompletedEventHandler(webService_getCaseCompleted);
void webService_getCaseCompleted(object sender,webService.getCaseCompletedEventArgs e) { webService.GetCaseAsync("test"); } I also have a button on my form which I want to run the code from there.I tried this, private void button1_Click(object sender, EventArgs e) { webService_getCaseCompleted(this, null); } But I get error that "e" is Null.How should I run this methode?
Thanks, Dave