Hi All,
I'm implementing a webservice client that sets the endpoint address with
the ENDPOINT_ADDRESS_PROPERTY after creating a Service Stub that points
to the localhost. I have no problems when the IP and port are correctly
set up. I even set the "com.sun.xml.ws.request.timeout" property to a
certain timeout, so I get SocketTimeoutException when my Server doesn't
reply on the specified time.
However, when the IP and port are wrongly choosen, so no Server is up in
that address, I get no Exception when changing the
ENDPOINT_ADDRESS_PROPERTY. Moreover, when a Service method is executed
the timeout doesn't correspond to the one set with
"com.sun.xml.ws.request.timeout" but it last around three minutes and
throws a ConnectionException. I guess this is because my client is
unable to establish any TCP connection with the Server (as there is no
server in that ip address).
So my question is if there is any property I could change to set a
different timeout for the connection instead of the three minutes. Also,
I would like to know if there's any way to force the change of
ENDPOINT_ADDRESS_PROPERTY to throw an Exception when no server is
available in that address.
Thanks,
Daniel.