On Fri, 17 Aug 2001, Paula Young wrote:
> RE: SOAPHTTPConnection.setTimeout - does it work?Lei,
>
> I am getting the timeout event jsut fine. My implementation looks like:
>
> Call call = new Call();
>
> SOAPHTTPConnection shc = new SOAPHTTPConnection();
> shc.setTimeout(5 * 1000); // to break-out of invoke() in 5-secs if
> remote doesn't respond fast enough
> call.setSOAPTransport(shc);
> call.setSOAPMappingRegistry(smr);
>
> My env is:
> HP-UX B.11.00 U 9000/800
> JDK 1.3
> Apache SOAP 2.2
>
> Regards,
> Paula
>
> ...now if I can only find the place in the TCP Tunnel GUI to flush the
> output stream so that my client doesn't timeout all the time due to TTG
> holding on to the the request I'd be fine! At least it helps me know that
> my setTimeout() logic is working correctly!
Worth of time! I lost for it some ours.
I'v found this and modified code, but that still doesnt
work ON LINUX (JDK 1.3.1) only, on Windows it runs well so client dosn't
wait any time on response.
What intersting, your client becomes answer from tunel GUI if you STOP
and START GUI proces (just with Ctrl-Z, and fg command), but then happens
braking of connection with server and GUI throws exeption.
It's probably en unrecognized and hard to debug eror in
InputStream or OutputStream returned by Socket implementation (probably on
native code level).
Radek Winsniewski
www.datenknecht.de
> -----Original Message-----
> From: Lei Chen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 2:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: SOAPHTTPConnection.setTimeout - does it work?
>
>
> Just trying to refresh this month-old thread :)
>
> I don't think the setTimeout method is working, at least from messaging
> point of view. I tried to set the value to 1, 50, 1000 and 5000, but nothing
> happens i.e. I am getting responses as normal. No exception was ever thrown.
> So what is the expected behavior of this method. SOAP documentation doesn't
> have lot of detail on this.
>
> Can anybody help please???
>
> Thanks,
>
> Lei Chen
> [EMAIL PROTECTED]
>
>
>
>
>
> -----Original Message-----
> From: Heitzso [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 3:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: SOAPHTTPConnection.setTimeout - does it work?
>
> 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
> >
>
>