Click here to Skip to main content
15,906,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Scenario :
I have a window application with C#, I am calling my WebService from window application.

Problem :
If the process is taking a long time to complete, it throws exception "Operation timed out".

I know WebService has timeout if 300 sec by default.
I have set timeout to 400 sec, but what if my process runs more than 400 sec?

Is there any way to make it Synchronous with window application?

What to do?

Thanks,
Shreya
Posted
Updated 16-Nov-11 21:22pm
v2
Comments
Mehdi Gholam 17-Nov-11 2:42am    
Put the timeout to a sufficiently large number like 2000.

And you probably mean "Asynchronous".
shreya1987 17-Nov-11 2:48am    
Thanks i will try

1 solution

Why don't you set the maximum timeout-value?
http://social.msdn.microsoft.com/forums/en-US/wcf/thread/48551591-719e-42f6-b49d-463fab92b662/[^]

Did you ever think of an async implementation
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900