|
-
May 27th, 2007, 07:51 AM
#1
Thread Starter
Frenzied Member
[2005] web services and lenghty operation
helllloooo all,
i have a web service that implements a very long operations of database maintenance. so it takes about 3 - 10 minutes in average.
the problem is , i call this maintenance service from my windows application (vb.net 205) . it works fine but it raises a timeout exception after a while.
the exception raised told me about something called pump message that the web serivce should raise periodically to the client using the service method in order to advise him that the service is still procssing and prevent the time out.
something like application.doevents
i have searched for nearly 20 minutes without luck, so if can anybody save me the time and advise me what to write inside the blocks of the webservice. i will be thankful
RGDS all and thx for your time
-
May 29th, 2007, 09:28 AM
#2
Thread Starter
Frenzied Member
Re: [2005] web services and lenghty operation
anybody up for the Quest ?
(-:
-
May 29th, 2007, 03:15 PM
#3
Fanatic Member
Re: [2005] web services and lenghty operation
You should ask this in the ASP.NET forum, probably.
If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!
Show Appreciation. Rate Posts!
-
May 29th, 2007, 03:37 PM
#4
Re: [2005] web services and lenghty operation
is the timeout happening client side or server side?
On the client end of things, you can set your WS object's timeout to infinite..
MyWebService.Timeout = System.Threading.Timeout.Infinite
Where MyWebService is your WS variable...
System.Threading.Timeout.Infinite is a constant that equals -1
-
May 30th, 2007, 02:20 AM
#5
Thread Starter
Frenzied Member
Re: [2005] web services and lenghty operation
thank you all of your replies.
the timeout happens at client side because the web service takes a long time before responding
if any moderator thinks this is an asp.net topic then plz move it.
thank you
-
May 30th, 2007, 08:58 AM
#6
Re: [2005] web services and lenghty operation
did you try setting the timeout to infinite to see if that makes the client wait without thinking it timed out?
I would not consider this specifically an ASP.NET issue, more of a VB.NET issue, so for now I will leave the post where it is.
-
May 30th, 2007, 10:06 PM
#7
Re: [2005] web services and lenghty operation
Are you using the Async versions of the methods? That may help as well.
-
May 30th, 2007, 10:09 PM
#8
Thread Starter
Frenzied Member
Re: [2005] web services and lenghty operation
sorry Edneeis, i am somehow igrnorant so i dont know what are you talking about.
i know the concepts of multithreading in .net but dont know what do u mean by that post
-
Jun 6th, 2007, 09:35 PM
#9
Re: [2005] web services and lenghty operation
Web Service methods will have a Begin and End version of the original method as well. These are what you use to launch the same method asynchronously (in another thread so to speak).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|