HighTechTalks DotNet Forums  

Controlling Web Service Timeout from inside web service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Controlling Web Service Timeout from inside web service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
dayblue
 
Posts: n/a

Default Controlling Web Service Timeout from inside web service - 06-18-2005 , 03:23 PM






I am implementing some web services to support a new standard for my
industry. Because of the way these web services are defined, there is the
possibility that a large amount of data can be sent in one call. In some
cases I would want to make sure that the web service timeout is long enough
to run to completion. In others it may be more beneficial to lower the
timeout so that large blocks of data can't be used.

My question is simply if the web service timeout can be controlled from
inside the web services such that any timeout specified by the calling client
can be overridden?
--
dayblue

Reply With Quote
  #2  
Old   
drb
 
Posts: n/a

Default RE: Controlling Web Service Timeout from inside web service - 07-01-2005 , 02:04 PM






I have a similar question. The conclusion I'm coming to is that it's
implemented the way it is in order put the onus on the client - if the client
sends a large chunk of data and doesn't give it enough time to complete, oh
well... it's their foot; they shot themselves, etc.

If you have control over both sides of the wire for your implementation,
consider doing what I think I'm going to do: add an explicit
"requestedTimeout" parameter to the method (with a reasonable default), and
if you decide on the server that too much time is being requested, go ahead
and timeout/return on your own.

But, I'm all ears if anyone else has a better solution!

"dayblue" wrote:

Quote:
I am implementing some web services to support a new standard for my
industry. Because of the way these web services are defined, there is the
possibility that a large amount of data can be sent in one call. In some
cases I would want to make sure that the web service timeout is long enough
to run to completion. In others it may be more beneficial to lower the
timeout so that large blocks of data can't be used.

My question is simply if the web service timeout can be controlled from
inside the web services such that any timeout specified by the calling client
can be overridden?
--
dayblue

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.