473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web Page & WebService Threading Example

I have a Web page which calls a WebService, this web service call might take
few seconds to up 30 min
I was thinking of having a webpage query the webservice every minute to keep
it form timing out, but I am not sure how to do that,
somehow I have to have the webpage query the status of the Webservice
request every minute or so to keep it from timing out.

I was thinking to do the following:

1) Web page calls a webservice
2) A web service spans a thread and returns some thread id to the calling
webpage
3) The web page keeps calling the webservice with this thread id every
minute as long as the webservice confirms the thread is running, that way
the web page will not timeout
4) Once the thread is completed the web page calls the webservice again and
retrieves the final result.

Does anyone has an example of such process or a better idea of how this
should be done?
Thank you
Peter

Jun 27 '08 #1
2 2193
Yikes - waiting up to 30 minutes on a web page? Why not just send them an
email when it's done, with a link to download their stuff?
-- Pete
To be a success, arm yourself with the tools you need and learn how to use
them.

Site: http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://ittyurl.net
"Peter" wrote:
I have a Web page which calls a WebService, this web service call might take
few seconds to up 30 min
I was thinking of having a webpage query the webservice every minute to keep
it form timing out, but I am not sure how to do that,
somehow I have to have the webpage query the status of the Webservice
request every minute or so to keep it from timing out.

I was thinking to do the following:

1) Web page calls a webservice
2) A web service spans a thread and returns some thread id to the calling
webpage
3) The web page keeps calling the webservice with this thread id every
minute as long as the webservice confirms the thread is running, that way
the web page will not timeout
4) Once the thread is completed the web page calls the webservice again and
retrieves the final result.

Does anyone has an example of such process or a better idea of how this
should be done?
Thank you
Peter

Jun 27 '08 #2
The process creates reports so depending on what data you are querying
depends how long you wait.

For instance every day the user enters 'Smith' as the parameter and looks
for results, the report might take 5 seconds to run to display the data.
Then one day the user enters 'S*' and the report takes 20 minutes to run so
I can't tell the user to expect email sometimes and display it on the screen
other times specialy when the users want to see the results on the screen.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.NoSpamMaam.comwrote in message
news:74**********************************@microsof t.com...
Yikes - waiting up to 30 minutes on a web page? Why not just send them an
email when it's done, with a link to download their stuff?
-- Pete
To be a success, arm yourself with the tools you need and learn how to use
them.

Site: http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://ittyurl.net
"Peter" wrote:
>I have a Web page which calls a WebService, this web service call might
take
few seconds to up 30 min
I was thinking of having a webpage query the webservice every minute to
keep
it form timing out, but I am not sure how to do that,
somehow I have to have the webpage query the status of the Webservice
request every minute or so to keep it from timing out.

I was thinking to do the following:

1) Web page calls a webservice
2) A web service spans a thread and returns some thread id to the calling
webpage
3) The web page keeps calling the webservice with this thread id every
minute as long as the webservice confirms the thread is running, that way
the web page will not timeout
4) Once the thread is completed the web page calls the webservice again
and
retrieves the final result.

Does anyone has an example of such process or a better idea of how this
should be done?
Thank you
Peter


Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: TC | last post by:
Hello, I am making an asynchronous call to a webservice and trying to update the web page with the results. The page is not updating. Does anybody know why??? Below is my code:
1
by: M DL via .NET 247 | last post by:
Hi all, i have one problem with a method of an xml web service that use a datetime data type input variable, and may be all is caused by international settings. The XML web service (localized...
5
by: Homa | last post by:
Hi all, Can anyone give me some links about how to do an async web service call from aspx and display a temperary page before the web service returns? Thanks, Homa Wong
3
by: Karl | last post by:
Can Javascript code catch an exception thrown in an ASP.NET webservice? (Using XMLHTTPRequest object to send the SOAP message to the webservice.) If so, what't the Javascript syntax please? TIA
4
by: jens Jensen | last post by:
Hello, I need to call a webservice with an System.Xml.XmlDocument objet and read the return value into and System.Xml.XmlDocument. The webservice was written with an oracle tool and wrapped...
0
by: Raymondr | last post by:
Hi, First a brief description of out application: We have a webapplication which calls a couple of webservices during one request (postback). These calls to the webservices are made concurrent...
0
by: Morgan Cheng | last post by:
I have one webservice written in MC++, which uses another native DLL deployed in %webservice_install_dir%\bin folder. The API invocation between MC++ and native C++ looks seamless. The compilation...
11
by: John Sheppard | last post by:
Hello there, I am running a webservice on IIS6, sometimes it runs at a reasonable speed, sometimes it runs painfully slow and sometimes inbetween. The application that consumes the service is...
9
by: davids18 | last post by:
Hello, I have a web service method that need to create a thread that does some work in the background so the main process can go on. The work in the background is a simple insert into a database. If...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.