Asynchronous web services VS 2005 v2.0

G

Guest

I posted this question several days ago, but I don't think I specified what
version of .Net I was using. I'm currently using VS 2005 framework 2.0.
Where can I find information on asynchronous web service calls for VS 2005?
I've found some articles, but they apply to VS 2003.
I wrote a web service that processes a file and stores it into a db. The
service takes about two minutes to run, and I want to be able to update the
aspx that consumes that service with something (maybe a counter). The web
service is working, but I want it to be more user-friendly.

Any help is appreciated.
Thanks.
 
N

Nicholas Paldino [.NET/C# MVP]

VMI,

You have to understand that web services in themselves are not
asynchronous. At their core level, they are atomic units of work that are
performed, or not performed.

Also, there is no callback mechanism for web services. If you want
something of that nature, then you have to implement it yourself.

In this scenario, you would have one web service which would take the
request for the operation. It would return a token and kick off the
processing.

You would then have another web request which would take the token and
then return the progress of the request. When the progress indicates that
the request is complete, you would have a third web request which would give
you the results (given the token).

Hope this helps.
 
G

Guest

I've been trying to find information on how to do this. Do you suggest any
links that may help me? I've always wanted to learn about mutithreading but
sometimes it seems so complex.

Thanks.
 

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