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

Web Service timeout

2
I have a web service where I would like to allow the user to set a timeout by say passing a value to a [WebMethod] function. I know I can set the proxy.Timeout but this isn't ideal for my application.

The undernoted article implies that I should be able to use this.Timeout within the web service itself however the intellisense doesn't show Timeout in the context of the System.Web.Services.WebService. I'm a novice with regard to web services so any help would be appreciated. Thanks

http://msdn2.microsoft.com/en-us/library/ms998562.aspx#scalenetchapt10_topic14
Jun 29 '07 #1
2 751
radcaesar
759 Expert 512MB
If you want to set the timout for your web service, you must use the proxy of that web service.

this.timeout also do the same only.

Whats your problem when set the timeout using a getter and setter method of a property ?

:)
Jun 29 '07 #2
Nossa
2
If you want to set the timout for your web service, you must use the proxy of that web service.

this.timeout also do the same only.

Whats your problem when set the timeout using a getter and setter method of a property ?

:)
Thanks for replying. One of the things I'd like clarified is why, inside the service I'm unable to do
Expand|Select|Wrap|Line Numbers
  1. this.Timeout
? If I attempt to add the code it doesn't recognise TimeOut. I'm not sure what you mean in the last line of your reply - within the web service there doesnt appear to be anything I can do to programmatically set a timeout. One option is to use delegates with a BeginInvoke and use an IAsyncResult AsyncWaitHandle but this seems to me to be excessive.
Jun 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Carson Saunders | last post by:
I have a C# client application that calls a web service. I implement the CookieContainer class on the client to ensure the session is kept. However, I'm having trouble with the session timeout. I...
2
by: dayblue | last post by:
My question has to do with the process of calling web services. Typically when the client calls a web service they can specify the timeout for the call. My question is how the actual web service...
11
by: Frank Rizzo | last post by:
Hello, My c# based windows service takes a while to dispose. I have to release bunch of resources all over the place and unfortunately it can take 20-40 seconds before I can cleanly exit. ...
0
by: Seth | last post by:
For some reason my service works fine except that it will create the file in my c drive, but will not write to the file. Sorry if this is a duplicate post, i have found some that ask the same...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
0
by: Barb | last post by:
Hello, I have a (C#) web service being consumed by a high volume "asp classic" site. It worked perfectly until I tried consuming a second web service from the first web service. Both services...
1
by: Shane | last post by:
I have a particular requirement when I call a web service; I have to call the web service, wait until the web service returns or my timeout expires (whichever is sooner) and exit. I tried to use...
1
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.