views:

465

answers:

1

Hello I'm using a JaxWsPortProxyFactoryBean (from Spring framework) to access a web-service. I would like to change the timeout of the http queries I'm sending. Is there a way to do this?

Thank you by advance for any help

A: 

Looks like there is a way as per the documentation of JaxWsPortProxyFactoryBean it has a the following method

addCustomProperty(String name, Object value)

Use JAXWSProperties.CONNECT_TIMEOUT or "com.sun.xml.ws.request.timeout" appropriately.

Check: https://jax-ws.dev.java.net/guide/HTTP%5FTimeouts.html

shivaspk
I did find this page too, but not the String value of the property. Where did you find it? In which version of which JAXWS library is this property defined? Thanks for your help.
Laurent K