You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Paula Young <py...@invertix.com> on 2001/07/23 20:46:10 UTC
SOAPHTTPConnection.setTimeout - does it work?
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);
???
Thanks for helping,
Paula Young
Re: SOAPHTTPConnection.setTimeout - does it work?
Posted by Heitzso <he...@home.com>.
Paula,
I remember seeing it embedded in an exception. I didn't bother
to parse out the words to flag that particular exception.
So, re can you detect? Yes, but you'll want to run a test that
breaks on the timeout, note the exact text of the exception,
and search for some key phrase that you find in it.
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
>
Re: SOAPHTTPConnection.setTimeout - does it work?
Posted by Heitzso <he...@home.com>.
Paula,
I remember seeing it embedded in an exception. I didn't bother
to parse out the words to flag that particular exception.
So, re can you detect? Yes, but you'll want to run a test that
breaks on the timeout, note the exact text of the exception,
and search for some key phrase that you find in it.
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
>
RE: SOAPHTTPConnection.setTimeout - does it work?
Posted by Paula Young <py...@invertix.com>.
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:heitzso@home.com]
Sent: Monday, July 23, 2001 3:07 PM
To: soap-user@xml.apache.org
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.
RE: SOAPHTTPConnection.setTimeout - does it work?
Posted by Paula Young <py...@invertix.com>.
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:heitzso@home.com]
Sent: Monday, July 23, 2001 3:07 PM
To: soap-user@xml.apache.org
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.
Re: SOAPHTTPConnection.setTimeout - does it work?
Posted by Heitzso <he...@home.com>.
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.
Re: SOAPHTTPConnection.setTimeout - does it work?
Posted by Heitzso <he...@home.com>.
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.