Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I'm developing a call to a WCF service for my company.
The service is developed by an external company.

This WCF has a call that checks if an item exists, but instead of returning false it goes in timeout..

I have to fix that by my side, till the time the company that developed the service will fix that behaviour.

I'm asking if there is a way to call a method and to go to the next instruction no matter witch what data, after a small timespan (a lot smaller than the timeout).

Thanks

J.J.
Posted
Updated 28-Feb-12 23:03pm
v2

1 solution

I believe you can switch on an option that will provide asynchronous operations. (In WCF this is the checkbox: "Generate asynchronous operations" on the dialog box, this will give two methods for each service operation a begin and a callback)

Alternatively you can start a thread when calling the webservice method and go from there. If you want to move this way, probably the BackgroundWorker class could help you or have a look at the Thread classes.

Hope this helps.
 
Share this answer
 

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