JaxWsPortProxyFactoryBean request timed out

I am using JaxWsPortProxyFactoryBean (from Spring) to access a webservice. I would like to change the timeout of the HTTP requests that I am sending. Is there a way to do this?

Thank you for your help for any help

+2


source to share


1 answer


It looks like there is a way in the JaxWsPortProxyFactoryBean documentation, it has the following method

addCustomProperty(String name, Object value)

      



Use JAXWSProperties.CONNECT_TIMEOUT

or com.sun.xml.ws.request.timeout

accordingly.

Check: https://jax-ws.dev.java.net/guide/HTTP_Timeouts.html

+1


source







All Articles