473,408 Members | 2,832 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,408 software developers and data experts.

Please help with this error handling:

Hi!

I'm using webservice to display weather on my webpage.
Sometimes this XML webservice times out (or just takes too long) and my
webpage does not load (Request timed out)
Regular error handling doesn't help here.

I wonder what needs to be done to avoid this problems. I don't ming remove
blocks of page if service fails, but I want rest displayed !

TIA
Nov 18 '05 #1
2 1097
the timeout on you page has to be longer than the timeout on the webrequest.

-- bruce (sqlwork.com)

"Ivan Demkovitch" <i@a.b> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Hi!

I'm using webservice to display weather on my webpage.
Sometimes this XML webservice times out (or just takes too long) and my
webpage does not load (Request timed out)
Regular error handling doesn't help here.

I wonder what needs to be done to avoid this problems. I don't ming remove
blocks of page if service fails, but I want rest displayed !

TIA

Nov 18 '05 #2
Bruce,

Thanks, I understand this.

Actually, I'm more interested in reducing timeout of webrequest and display
error to user then making user wait forever.
Some of this webservices sometime hangs for good (free stuff).

How do I set timeout for web service?

"bruce barker" <no***********@safeco.com> wrote in message
news:ua*************@TK2MSFTNGP10.phx.gbl...
the timeout on you page has to be longer than the timeout on the webrequest.
-- bruce (sqlwork.com)

"Ivan Demkovitch" <i@a.b> wrote in message
news:uN**************@TK2MSFTNGP12.phx.gbl...
Hi!

I'm using webservice to display weather on my webpage.
Sometimes this XML webservice times out (or just takes too long) and my
webpage does not load (Request timed out)
Regular error handling doesn't help here.

I wonder what needs to be done to avoid this problems. I don't ming remove blocks of page if service fails, but I want rest displayed !

TIA


Nov 18 '05 #3

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

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
72
by: Stephen Poley | last post by:
I have quite often (as have probably many of you) come across HTML forms with irritating bits of Javascript attached. The last straw on this particular camel's back was a large form I was asked to...
1
by: Jon LaRosa | last post by:
Hi all - I have a web application and I want to be able to do some basic error handling. For example, here is one error I would like to catch and display in a useful way for the user: ...
11
by: milkyway | last post by:
Hello, I have an HTML page that I am trying to import 2 .js file (I created) into. These files are: row_functions.js and data_check_functions.js. Whenever I bring the contents of the files into...
2
by: Mike | last post by:
Greetings, Having a major problem here. running version 8.2 on win2003 server. The problem I am having is backing up a database seems to get to the last part of the backup and then fails. This...
4
by: Al Williams | last post by:
Hi, I have error handling in place throughout my application. I also start the application wrapped in error handling code to catch any unexpected exceptions (i.e. exceptions that occur where I...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
2
by: Suhas Vengilat | last post by:
Hi All, I have a couple of stored procedures written in SQL 2000. Given below one sp. ***************************************************** ALTER PROCEDURE . ( @AcTypeName varchar(50),...
5
by: Registered User | last post by:
I'm a newbie and have attempted to create a program to convert a string containing the representation of a number in a specified base to a decimal integer. Here's the code: #include <stdio.h> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.