web service timeout issues

R

rich

I am running dotnet compact on windows mobile 2003 connecting to a
webservice over a wireless connection. Setting the timeout doesn't seem
to work if the device has received any of the reply and the wireless
connection drops off. The application appears to get stuck in the
dotnet web services code. Any ideas on how to fix this or workarounds
to the problem?
 
A

Alex Feinman [MVP]

Use asynchronous web service invocation (BeginXXX/EndXXX) and cancel the
call on timer
 
S

Sergey Bogdanov

.... in addition to Alex's post, to cancel asynchronous call you have to
cast IAsyncResult that returned by BeginXXX to the WebClientAsyncResult
and use the Abort() method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top