Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JaxWsPortProxyFactoryBean(来自 Spring 框架)来访问 Web 服务。我想更改我发送的 http 查询的超时时间。有没有办法做到这一点?
提前感谢您的帮助
看起来有一种方法,根据 JaxWsPortProxyFactoryBean 的文档,它有以下方法
addCustomProperty(String name, Object value)
使用JAXWSProperties.CONNECT_TIMEOUT或com.sun.xml.ws.request.timeout适当。
JAXWSProperties.CONNECT_TIMEOUT
com.sun.xml.ws.request.timeout
检查: https ://jax-ws.dev.java.net/guide/HTTP_Timeouts.html