Web service callback
-
hi, I needs some clarification for webservice. The scenario is, i have to call a webservice interface. which is performed more than three minutes ( ftp file upload and download process done by that webservice). which is taking some times to complete. So i used on the webservice proxy object property like
service.Timeout = 1000*60*5
its okay for webservice communication.but until that time we have to wait in our asp page. for that i created separate thread for webservice invoke.( thread is containing the class object is singleton). so when i used timer every time the class has the value or not . if there, i will shown to to the page. For this way, i have achieve my scenario. but incase, the user can close the page after invoke, in that case data's maintain the entire application ( The data stored in hashtable object as key and value) Have any option for achieve webservice performing long time?
-
hi, I needs some clarification for webservice. The scenario is, i have to call a webservice interface. which is performed more than three minutes ( ftp file upload and download process done by that webservice). which is taking some times to complete. So i used on the webservice proxy object property like
service.Timeout = 1000*60*5
its okay for webservice communication.but until that time we have to wait in our asp page. for that i created separate thread for webservice invoke.( thread is containing the class object is singleton). so when i used timer every time the class has the value or not . if there, i will shown to to the page. For this way, i have achieve my scenario. but incase, the user can close the page after invoke, in that case data's maintain the entire application ( The data stored in hashtable object as key and value) Have any option for achieve webservice performing long time?
-
okay... Thanks for sharing but the thing is when I added web reference, coudn't get the method start with Begin(BeginHello). Its comes like HelloAsync. didnt get this type of proxy method automatically
MyService.BeginHelloWorld(AsyncCallback, null);
This is the call back method ok its comes after the webservice execution ,. but have to show that "completed web service" message to page. but in this case, its not reflected to page
void MyService_HelloWorldCompleted(object sender, ForLearnWebservices.localwebserver.HelloWorldCompletedEventArgs e)
{
lb1.Text = "completed web service";
//throw new NotImplementedException();
}