|
From: A.Rocha on 4 Jul 2008 05:16 Hi, I need some help to solve a problem.. Im working with an application that invoke an webservice every 5 minutes, during the routine execution my app "FREEZE", its takes about 20/30 seconds to complete all process, after that its running normal. There is any way to call webservice on background, whitout freeze application? Its important that the final user not realize this situation, must be a transparent process. Thanks for any help to solve my problem.. A.Rocha
From: Neil Cowburn on 4 Jul 2008 05:42 On 2008-07-04 10:16:06 +0100, "A.Rocha" <armandorocha(a)ifthensoftware.com> said: > Hi, > > I need some help to solve a problem.. > > Im working with an application that invoke an webservice every 5 > minutes, during the routine execution my app "FREEZE", its takes about > 20/30 seconds to complete all process, after that its running normal. > There is any way to call webservice on background, whitout freeze > application? > > Its important that the final user not realize this situation, must be a > transparent process. > > Thanks for any help to solve my problem.. > > > A.Rocha Call the Web service asynchronously using the auto-generated Begin{MethodName} and End{MethodName} methods. Take a look at Google for more info: http://www.google.com/search?q=calling+Web+services+asynchronously -- Neil Cowburn MVP Principal Partner OpenNETCF Consulting
From: A.Rocha on 4 Jul 2008 07:39 Hi, Thanks for the tip Neil, its help me a lot. I have one more question. Every time i call my webservice i must always create my object service? MyService service = new MyService(); AsyncCallback callback = new AsyncCallback(ServiceCallback); IAsyncResult asyncRes = service.BeginService(parameters, callback, service); Im new on WebServices... :( -- A.Rocha "Neil Cowburn" <neilc@[nospam]opennetcf.[nospam]com> escreveu na mensagem news:2008070410424016807-neilc(a)nospamopennetcfnospamcom... > On 2008-07-04 10:16:06 +0100, "A.Rocha" <armandorocha(a)ifthensoftware.com> > said: > >> Hi, >> >> I need some help to solve a problem.. >> >> Im working with an application that invoke an webservice every 5 minutes, >> during the routine execution my app "FREEZE", its takes about 20/30 >> seconds to complete all process, after that its running normal. There is >> any way to call webservice on background, whitout freeze application? >> >> Its important that the final user not realize this situation, must be a >> transparent process. >> >> Thanks for any help to solve my problem.. >> >> >> A.Rocha > > Call the Web service asynchronously using the auto-generated > Begin{MethodName} and End{MethodName} methods. > > Take a look at Google for more info: > http://www.google.com/search?q=calling+Web+services+asynchronously > > -- > Neil Cowburn MVP > Principal Partner > OpenNETCF Consulting >
From: Neil Cowburn on 4 Jul 2008 08:01 On 2008-07-04 12:39:02 +0100, "A.Rocha" <armandorocha(a)ifthensoftware.com> said: > Hi, > > Thanks for the tip Neil, its help me a lot. > > I have one more question. > > Every time i call my webservice i must always create my object service? > > MyService service = new MyService(); > AsyncCallback callback = new AsyncCallback(ServiceCallback); > IAsyncResult asyncRes = service.BeginService(parameters, callback, service); > > > Im new on WebServices... :( The Web service client object is just like any other object in .NET. You choose the scope of the object -- either constrained to the current method, or as a class-level field. -- Neil Cowburn MVP Principal Partner OpenNETCF Consulting
|
Pages: 1 Prev: ListView Control Next: AJAX User Control Event's not firing... |