<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SYSK 309:  How To Cancel a Web Service Request</title><link>http://blogs.msdn.com/irenak/archive/2007/03/19/sysk-309-how-to-cancel-a-web-service-request.aspx</link><description>AJAX makes asynchronous invocation of web service methods very easy. For example, the line below instantiates a web service proxy (MyService) and calls a method (MethodX): var request = new MyService().MethodX(param1, param2, OnRequestComplete, OnError);</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: SYSK 309:  How To Cancel a Web Service Request</title><link>http://blogs.msdn.com/irenak/archive/2007/03/19/sysk-309-how-to-cancel-a-web-service-request.aspx#8955946</link><pubDate>Wed, 17 Sep 2008 21:16:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8955946</guid><dc:creator>Keith</dc:creator><description>&lt;p&gt;The below will allow to suppress/change the onFail for a userInitiated abort&lt;/p&gt;
&lt;p&gt;if (request != null) { request._executor._webRequest.completed = someOtherFunction; request.get_executor().abort(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;</description></item></channel></rss>