asynchronous call to web service from a web page

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default asynchronous call to web service from a web page

    My web service is to update a database. When user clicks on a button on a
    web page, it calls web service to update database. With hundred thousand
    transactions, it takes 15-20 minutes to update database, eventually it times
    out. How do I make an asynchronous call to the web service without needing
    a return from call back method. User doesn't have to wait, they just call
    the web service then move to other web pages. Thanks


    mimi Guest

  2. Similar Questions and Discussions

    1. Asynchronous Web Service Call
      Karl, If the webservice is out of process (whether it be on another machine or just out of process), then it will be executed using a thread from...
    2. How to use asynchronous mode of web service in asp.net page?
      Hi, I use asynchronous mode of web service in asp.net page and specify a callback function. My question is how can I keep the returned value ?...
    3. how to make asynchronous call to web service when its OneWay property is set to true.
      I have web service with the following signature public void Update(XmlElement objElement) { // //call another C# library that update the...
    4. Web service Asynchronous call fails
      Hi I created a webservice with a simple we method to increment a number passed from the client(a console app) . Then i call this web service method...
    5. Asynchronous Web Service Call Fails
      Hi I created a webservice with a simple we method to increment a number passed from the client(a console app) . Then i call this web service method...
  3. #2

    Default RE: asynchronous call to web service from a web page

    Hi
    Please check the following url
    [url]http://dotnetjunkies.com/WebLog/robcannon/archive/2004/04/02/10679.aspx[/url]


    HTH
    --
    Ravikanth[MVP]


    "mimi" wrote:
    > My web service is to update a database. When user clicks on a button on a
    > web page, it calls web service to update database. With hundred thousand
    > transactions, it takes 15-20 minutes to update database, eventually it times
    > out. How do I make an asynchronous call to the web service without needing
    > a return from call back method. User doesn't have to wait, they just call
    > the web service then move to other web pages. Thanks
    >
    >
    >
    Ravikanth[MVP] Guest

  4. #3

    Default Re: asynchronous call to web service from a web page

    Thanks, but it's for win form and stills need a pointer to call back
    function.

    "Ravikanth[MVP]" <RavikanthMVP@discussions.microsoft.com> wrote in message
    news:ADF999B3-A7BD-4983-9F47-BE129E3079E4@microsoft.com...
    > Hi
    > Please check the following url
    > [url]http://dotnetjunkies.com/WebLog/robcannon/archive/2004/04/02/10679.aspx[/url]
    >
    >
    > HTH
    > --
    > Ravikanth[MVP]
    >
    >
    > "mimi" wrote:
    >
    > > My web service is to update a database. When user clicks on a button
    on a
    > > web page, it calls web service to update database. With hundred
    thousand
    > > transactions, it takes 15-20 minutes to update database, eventually it
    times
    > > out. How do I make an asynchronous call to the web service without
    needing
    > > a return from call back method. User doesn't have to wait, they just
    call
    > > the web service then move to other web pages. Thanks
    > >
    > >
    > >

    mimi Guest

  5. #4

    Default Re: asynchronous call to web service from a web page

    I got it. I just need to call BeginXXX the process continues running even
    the page finish loading. When the process finished, it writes into a log
    file. User can check the log file any time. Thanks


    "mimi" <mh2521@hotmail.com> wrote in message
    news:%23hGB7M$bEHA.3664@TK2MSFTNGP12.phx.gbl...
    > Thanks, but it's for win form and stills need a pointer to call back
    > function.
    >
    > "Ravikanth[MVP]" <RavikanthMVP@discussions.microsoft.com> wrote in message
    > news:ADF999B3-A7BD-4983-9F47-BE129E3079E4@microsoft.com...
    > > Hi
    > > Please check the following url
    > > [url]http://dotnetjunkies.com/WebLog/robcannon/archive/2004/04/02/10679.aspx[/url]
    > >
    > >
    > > HTH
    > > --
    > > Ravikanth[MVP]
    > >
    > >
    > > "mimi" wrote:
    > >
    > > > My web service is to update a database. When user clicks on a
    button
    > on a
    > > > web page, it calls web service to update database. With hundred
    > thousand
    > > > transactions, it takes 15-20 minutes to update database, eventually it
    > times
    > > > out. How do I make an asynchronous call to the web service without
    > needing
    > > > a return from call back method. User doesn't have to wait, they just
    > call
    > > > the web service then move to other web pages. Thanks
    > > >
    > > >
    > > >
    >
    >

    mimi Guest

  6. #5

    Default Re: asynchronous call to web service from a web page

    yep,
    you can also mark the web service method OneWay.
    In this case there is no response at all.
    [url]http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebServicesProtocolsSoapRpcMethodAttrib uteClassOneWayTopic.asp[/url]

    Doing this, you don't need to BeginInvoke_BlahBlahBlah().
    It is a big clearer to someone reading the code that this is not just async,
    it is actually "fire and forget".


    -D


    "mimi" <mh2521@hotmail.com> wrote in message
    news:um1Mvt$bEHA.3824@TK2MSFTNGP10.phx.gbl...
    > I got it. I just need to call BeginXXX the process continues running even
    > the page finish loading. When the process finished, it writes into a log
    > file. User can check the log file any time. Thanks
    >
    >
    > "mimi" <mh2521@hotmail.com> wrote in message
    > news:%23hGB7M$bEHA.3664@TK2MSFTNGP12.phx.gbl...
    > > Thanks, but it's for win form and stills need a pointer to call back
    > > function.
    > >
    > > "Ravikanth[MVP]" <RavikanthMVP@discussions.microsoft.com> wrote in
    message
    > > news:ADF999B3-A7BD-4983-9F47-BE129E3079E4@microsoft.com...
    > > > Hi
    > > > Please check the following url
    > > >
    [url]http://dotnetjunkies.com/WebLog/robcannon/archive/2004/04/02/10679.aspx[/url]
    > > >
    > > >
    > > > HTH
    > > > --
    > > > Ravikanth[MVP]
    > > >
    > > >
    > > > "mimi" wrote:
    > > >
    > > > > My web service is to update a database. When user clicks on a
    > button
    > > on a
    > > > > web page, it calls web service to update database. With hundred
    > > thousand
    > > > > transactions, it takes 15-20 minutes to update database, eventually
    it
    > > times
    > > > > out. How do I make an asynchronous call to the web service without
    > > needing
    > > > > a return from call back method. User doesn't have to wait, they
    just
    > > call
    > > > > the web service then move to other web pages. Thanks
    > > > >
    > > > >
    > > > >
    > >
    > >
    >
    >

    Dino Chiesa [Microsoft] Guest

  7. #6

    Default Re: asynchronous call to web service from a web page

    great. That's what I needed. Thanks
    "Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message
    news:eP1CnrNcEHA.1248@TK2MSFTNGP11.phx.gbl...
    > yep,
    > you can also mark the web service method OneWay.
    > In this case there is no response at all.
    >
    [url]http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebServicesProtocolsSoapRpcMethodAttrib uteClassOneWayTopic.asp[/url]
    >
    > Doing this, you don't need to BeginInvoke_BlahBlahBlah().
    > It is a big clearer to someone reading the code that this is not just
    async,
    > it is actually "fire and forget".
    >
    >
    > -D
    >
    >
    > "mimi" <mh2521@hotmail.com> wrote in message
    > news:um1Mvt$bEHA.3824@TK2MSFTNGP10.phx.gbl...
    > > I got it. I just need to call BeginXXX the process continues running
    even
    > > the page finish loading. When the process finished, it writes into a
    log
    > > file. User can check the log file any time. Thanks
    > >
    > >
    > > "mimi" <mh2521@hotmail.com> wrote in message
    > > news:%23hGB7M$bEHA.3664@TK2MSFTNGP12.phx.gbl...
    > > > Thanks, but it's for win form and stills need a pointer to call back
    > > > function.
    > > >
    > > > "Ravikanth[MVP]" <RavikanthMVP@discussions.microsoft.com> wrote in
    > message
    > > > news:ADF999B3-A7BD-4983-9F47-BE129E3079E4@microsoft.com...
    > > > > Hi
    > > > > Please check the following url
    > > > >
    > [url]http://dotnetjunkies.com/WebLog/robcannon/archive/2004/04/02/10679.aspx[/url]
    > > > >
    > > > >
    > > > > HTH
    > > > > --
    > > > > Ravikanth[MVP]
    > > > >
    > > > >
    > > > > "mimi" wrote:
    > > > >
    > > > > > My web service is to update a database. When user clicks on a
    > > button
    > > > on a
    > > > > > web page, it calls web service to update database. With hundred
    > > > thousand
    > > > > > transactions, it takes 15-20 minutes to update database,
    eventually
    > it
    > > > times
    > > > > > out. How do I make an asynchronous call to the web service
    without
    > > > needing
    > > > > > a return from call back method. User doesn't have to wait, they
    > just
    > > > call
    > > > > > the web service then move to other web pages. Thanks
    > > > > >
    > > > > >
    > > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    mimi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139