Connecting Tech Pros Worldwide Forums | Help | Site Map

Cancel async web service call

DM
Guest
 
Posts: n/a
#1: Nov 12 '05
I want to be able to cancel an async call to a VB.Net web service and for the
web service to know it has been cancelled so that it can abort gracefully.

I have used the Begin.... and End... methods of the proxy class to
successfully run the web service asynchronously. And I used the Abort()
method of the IAsyncResult return by the Begin... method to abort the web
service request. This aborts the client but does not abort the web service as
it continues to run and complete normally.

Can anyone help with this please.

Dave

Steven Cheng[MSFT]
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Cancel async web service call


Hi Dave,

As for the webservice call still be executed when we abort the request on
the client proxy, this is a normal behavior. Since the webservice call is
made remotely and when the client send request to the serverside, there is
not further communication before the remote server return the response.
That's why the serverside will always finish the method call no matter we
abort it at client proxy or not. Currently there hasn't any good means to
avoid this. And the following article has also mentioned this:

#Asynchronous Web Service Calls over HTTP with the .NET Framework
http://msdn.microsoft.com/library/de...us/dnservice/h
tml/service09032002.asp

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Closed Thread