Calling webservices asynchronously - 2 possible ways

My blog has moved.
You can view this post at the following address:
http://www.osherove.com/blog/2003/10/26/calling-webservices-asynchronously-2-possible-ways.html
Published Sunday, October 26, 2003 1:01 PM by RoyOsherove
Filed under:

Comments

Wednesday, April 07, 2004 7:55 AM by wqeqw

# re: Calling webservices asynchronously - 2 possible ways

qweqweqweq
Wednesday, June 16, 2004 5:19 PM by Nina Crimi

# re: Calling webservices asynchronously - 2 possible ways

Hi,
I want to know why do you use Invoke in #2 and do not do it in #1?
I have: MainForm from which I call "layer"class and "layer"class access webservice proxy asynchronously.
So when I get my result back in "layer"class AsyncCall method should I use Invoke or not?
NIna
ncrimi@bridgecom.com
Monday, June 21, 2004 2:59 AM by Ohad Israeli

# re: Calling webservices asynchronously - 2 possible ways

The first method uses the Thread Pool and is prefered on the second method where you need to handle the threads yourself.
Tuesday, August 15, 2006 12:24 PM by rferreira

# re: Calling webservices asynchronously - 2 possible ways

Hi. The #2 works for both windows and web apps? I've saw this approach before, but i thought it could only be applyied to windows application... tks
Tuesday, August 15, 2006 12:35 PM by rferreira

# re: Calling webservices asynchronously - 2 possible ways

Sorry. One (in fact 2) more question(s): In #1 the BeginlistRegExp itself doesn't create a thread? And if I call it more than once before beeing sinalized by the WaitHandle status change?