Geeks With Blogs
Hannes Pavelka It isn't rocket science. Well, unless of course you're NASA

Oh yes, the following took me a while to find out ;)

The WSE-enabled proxy class is not thread-safe. When the proxy class is used to make multiple asynchronous calls to a Web service method, each call must be completed using the EndXX method before another call may be made.

WSE proxies contain state that is used for each method call. This
is the RequestSoapContext and ResponseSoapContext. Making 2 or more
concurrent calls from different threads means that each of those threads
will be attempting to access this state and this may produce conflicts.

Therefore you are not able to have overlapping asynchronous calls from a single proxy. If you want to have multiple async calls from the same client, you need to have separate proxies for each request.

Posted on Friday, April 28, 2006 1:24 AM | Back to top

Comments on this post: WSE multi-threading an application with a single proxy

# re: WSE multi-threading an application with a single proxy
Requesting Gravatar...
get password and username
Left by top hacker on Nov 02, 2009 1:42 PM

Your comment:
 (will show your gravatar)

Copyright © Hannes Pavelka | Powered by: