Re: Questions about Asynchronous Use of Webservice
From: Vitaly Filimonov [MSFT] (vitalyf_at_online.microsoft.com)
Date: 04/30/04
- Previous message: Vitaly Filimonov [MSFT]: "Re: Asynchronous web service"
- Next in thread: Jon Anderson: "Re: Questions about Asynchronous Use of Webservice"
- Reply: Jon Anderson: "Re: Questions about Asynchronous Use of Webservice"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 13:40:13 -0700
To answer your questions:
1) Nothing bad will happen. Http response will be sent from the server, but
won't be processed on the client app;
2) You cannot serialize IAsyncResult since it is interface, not something
"serializable". Remember - web services are basically http calls and the way
web works is the way web services operate... So, if your reply came in while
you were offline for any reason - you want see the reply at all.
-- Vitaly. ------- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm. "msnews.microsoft.com" <jon at andersoncentral dot com> wrote in message news:OHbuMPXLEHA.3348@TK2MSFTNGP09.phx.gbl... > I am working on a winform application that will require calls to > webservices. Some of these operations will take some time. I am thinking > about calling the asynchronous versions created automatically by dotnet when > I set my web reference (ie BeginXXX and EndXXX). > > I have some questions about this though. > > 1. What happens if I never call EndXXX? Let's say my operation (XXX) > performs updates to a database and then returns status. Does the database > operation commit and I just never get the return status data? Or does the > lack of an EndXXX call lead to an eventual exception which causes my > database changes to rollback? If it doesn't eventually throw an exception > but I never call EndXXX will there be server resources consumed (and > theoretically never released)? > 2. What if my application is shutdown after calling BeginXXX but before > calling EndXXX? Can I serialize the IAsyncResult object returned from > BeginXXX when closing the app then deserialize it next time the app opens > and make the call to EndXXX? > > Any help or insights appreciated. > Thanks, Jon > >
- Previous message: Vitaly Filimonov [MSFT]: "Re: Asynchronous web service"
- Next in thread: Jon Anderson: "Re: Questions about Asynchronous Use of Webservice"
- Reply: Jon Anderson: "Re: Questions about Asynchronous Use of Webservice"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|