Calling a web service from Multi-threaded application

  • Thread starter Thread starter Simon Cuce
  • Start date Start date
S

Simon Cuce

Hi All,

I'm attempting to call a web service from different
threads from within my compact framework application.

On one thread it throws an exception saying it is "unable
to read data from the transport connection".

I read some where that there are issues with the
soaphttpclientprotocol object returning the appropriate
data to the appropriate thread. Can this be confirmed...?

If so, is there a work around?

Simon
 
A work around may be to do an async call from the main
thread to the webservice. Once it's returned, if you need
to update the UI just do a Control.Invoke. You can also
try doing the async call from a different thread...i do
recall doing this before and haven't had a problem (but i
may be wrong).

HTH
Mark Arteaga
 
Back
Top