By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Web Page & WebService Threading Example

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.