async web service question!

D

DBC User

Hi Sharpies,

I have developed a asyncrnous web service client. Everything is
working fine. Except folloing 2 things

1. Is it possible to force timeout on an async call?
2. Is it possible to kill the async call?

Thanks.
DBC
 
D

Dmytro Lapshyn [MVP]

Hi,

The web service proxy class is derived from HttpSimpleClientProtocol (or one
of its descendants). All these classes, in turn, derive from
WebClientProtocol, who has the Timeout property you can configure so that an
HTTP request to a Web service times out after a certain amount of time.
 
D

DBC User

Well, I tried a example with Timeout property set to 10 and expected to
fail immediatly but it didn't. the async process kepp going and going.
 
D

DBC User

sorry I take it back. It works. I had another problem that was causing
the the web services to run.
 

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