Re: Questions about Asynchronous Use of Webservice

From: Vitaly Filimonov [MSFT] (vitalyf_at_online.microsoft.com)
Date: 04/30/04

  • Next message: Al Bahr: "Re: Changing Web Reference URL to Dynamic URL But I get Invalid Property Value"
    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
    >
    >
    

  • Next message: Al Bahr: "Re: Changing Web Reference URL to Dynamic URL But I get Invalid Property Value"

    Relevant Pages

    • Re: ASP.NET application alone cant do it!!! Right???
      ... execute the app without going to the web? ... work with your intentions of charging a subscription fee. ... function on the server to notify ... Web Services provides the quickest and easiest way to ...
      (microsoft.public.dotnet.framework.aspnet)
    • RE: error using getfile() in Windows application
      ... Are you using the web services or the OM? ... > i am trying to programatically access doc library files in a windows app. ... if i try to fetch files using GetFilefrom a remote server and ...
      (microsoft.public.sharepoint.portalserver.development)
    • Re: Hardcoding RijndaelManaged Keys
      ... since they can make securing web services much easier. ... > I have a vb.net WinForms app using web services which needs to send secure ... > into variables on both the server and the client app. ... then encrypt the data using this public key and send the ...
      (microsoft.public.dotnet.security)
    • Re: how to access other servers asp.net
      ... Web Services is not for speed. ... If you can run app at that PC, Web services is a good solution. ... i need to access files (word ... docs) on a server that the application is not running on. ...
      (microsoft.public.cert.exam.mcad)