Calling WebServices on Background...

A

A.Rocha

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
 
N

Neil Cowburn

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
 
A

A.Rocha

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... :(
 
N

Neil Cowburn

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top