Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HttpSOAPConnection timeout time

843790Oct 3 2008 — edited Sep 22 2009
Hi,

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???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2009
Added on Oct 3 2008
2 comments
370 views