HttpSOAPConnection timeout time
843790Oct 3 2008 — edited Sep 22 2009Hi,
I have a pice of code
SOAPConnection connection = soapConnFactory.createConnection();
Where the implemetation class returned from this factory is HttpSOAPConnection. What I would like to do is dynamically set the connection timeout time. Is this possible?
I have noticed I can do this with SOAPConnectionImpl, but the factory does not give me this class. And If I intantiate this class and use it directly then I get a class cast error on the line:
SOAPMessage reply = connection.call(message, new URL(destination));
Does anyone know how to set the connecion timeout time when using HttpSOAPConnection???