[prev in list] [next in list] [prev in thread] [next in thread] 

List:       soap-dev
Subject:    Re: setTimeout
From:       "Scott Nichol" <snichol () computer ! org>
Date:       2001-03-30 20:30:20
[Download RAW message or body]

Carl,

Please be aware that the timeout only affects I/O after the socket has been opened.  The
timer is not running during any required DNS lookup, nor during the time TCP/IP is
trying to create the connection.

Scott

----- Original Message -----
From: "Carl Blake" <cwblake@myrealbox.com>
To: <soap-dev@xml.apache.org>; <soap-user@xml.apache.org>
Sent: Friday, March 30, 2001 3:00 PM
Subject: setTimeout


>
> Hello,
> I am trying to set a timeout for my soap request.  I found instructions on
> how to do so in the soap-dev mailing list archives, but my code doesn't seem
> to be affected by the Timeout value I'm setting.  A snippet of my code is
> listed below.  Does anybody have any suggestions?
> Thanks in advance,
> -carl
> carl.blake@bigfoot.com
>
> .........
> Call call = new Call();
>  call.setTargetObjectURI("urn:ProcessHandlerBeta1");
>  call.setMethodName("Simple");
>  call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
>
>  SOAPHTTPConnection st = new SOAPHTTPConnection();
>  st.setTimeout(5000);
>  call.setSOAPTransport(st);
>
>  Vector params = new Vector(1);
>  params.addElement(
>   new Parameter("newOrder", Element.class, mxmlElmRoot,
>       Constants.NS_URI_LITERAL_XML));
>  call.setParams(params);
>
> Response resp;
>   String soapAction = "ProcessHandlerBeta1#Simple";
>   resp = call.invoke(url, soapAction);
> ...................
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic