Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
I need to set a timer in a webservice method and then start the process in another thread. If the timer reaches 120 seconds then kill the thread and return failure to the client. BTW, the method returns some XML document as return value. Kindly assist with some sample code.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jun-15 21:34pm    
Why doing such a weird thing? What have you tried so far?
—SA
Member 3137078 20-Jun-15 22:10pm    
In a webservice I called a remoting method. The webservice is consumed in a client application. In the Client application 2 minutes timeout is set. But even after the timeout exception is received by the client the webservice method (which in turns called a remoting method) is still executing. I need to avoid that. Hence after the 2 minutes time I'd like to stop the webservice method execution.

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