users@saaj.java.net

Re: [SAAJ-USR] Q: Setting HTTP client socket timeouts for SAAJ client?

From: Andreas Loew <Andreas.Loew_at_Sun.COM>
Date: Tue, 05 Jun 2007 12:30:44 +0200

Sorry, Kumar,

V B Kumar Jayanti schrieb:

>> I don't know whether overriding the SOAPConnectionFactory will do the
>> trick:
>
> It will do the trick, because when you override the
> SOAPConnectionFactory, you no longer use the HttpSOAPConnection.java
> from SAAJ RI. You can instead return your own HttpSOAPConnection
> implementation when the createConnection() method gets called on your
> Factory.

and what will my own provided HttpSOAPConnection have to look like in
order to create HttpURLConnections that take the socket timeouts into
account?

In the end, I think I would also have to do an

        endpointURL.openConnection()

somewhere in my "CustomHttpSOAPConnection" code. In how far could/would
this be different from the call that the default HttpSOAPConnection
issues, and allow for the socket timeouts to be passed!?

So do you have any pointers or sample code of how I will have to change
HttpSOAPConnection?

Thanks again!

Andreas

-- 
Andreas Loew
Java Architect
Sun Microsystems (Germany)