JAX-WS 客户端的默认超时

default timeout for JAX-WS client

我们正在调用使用 cxf-codegen-plugin 从 WSDL 生成代码的 Web 服务,并在 Spring xml 中配置了 JAX-WS 客户端,如下所示:

<jaxws:client id="abcApiInterface" serviceClass="abc.api.AbcApi" address="${xyz.abcApi.endpoint}" />

并且我们拥有由 Apache CXF 3.0.3 生成的 Web 服务接口。我们在调用该服务时看到超时,我们没有在客户端指定任何超时,所以只想知道 JAX-WS 客户端超时的默认值是多少?

连接超时的默认值为 30 秒,接收超时的默认值为 60 秒。

参见:http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport(includingSSLsupport)-Theclientelement