Title: RE: SOAPHTTPConnection.setTimeout - does it work?
Oh, and here's the exception I see when the timeout does occur:
 
 
try {
      resp = call.invoke(myUrlVal, "");
 
}    catch (SOAPException es) {
       // A timeout looks like: [SOAPException: faultCode=SOAP-ENV:Client;
      // msg=Read timed out; targetException=java.io.InterruptedIOException: Read timed out]
      if ( es.getMessage().equals("Read timed out") )
      {
          System.out.println("Detected a timeout on our Request!");
     }
}
--Paula
-----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
>

Reply via email to