web service timeout issues

  • Thread starter Thread starter rich
  • Start date Start date
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?
 
Use asynchronous web service invocation (BeginXXX/EndXXX) and cancel the
call on timer
 
.... 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.
 
Back
Top