Thanks Heitzso,
I forgot to ask, if it does timeout, will that come back to me as a SOAP
exception? IE., will I be able to detect the 5-sec timeout I set up
expired?
signed, Paula
-----Original Message-----
From: Heitzso [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 3:07 PM
To: [EMAIL PROTECTED]
Subject: Re: SOAPHTTPConnection.setTimeout - does it work?
Paula Young wrote:
>I want to timeout and break out of waiting for the return from
call.invoke()
>if the return is taking too long. Has any one done this successfully with:
>
>SOAPHTTPConnection http = new SOAPHTTPConnection();
>http.setTimeout(5000); // 5-sec timeout
>call.setSOAPTransport(http);
>
yep, basically the same code you have ...
SOAPHTTPConnection shc = new SOAPHTTPConnection();
shc.setTimeout(timeout);
Call call = new Call();
call.setSOAPTransport(shc);
I'm learning to setup a test class for every service that
runs a single request, a hundred serial requests, and
a hundred parallel requests and reports on errors, response
times, etc. I suggest you write something that pushes the
envelope and breaks on a timeout.