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.
在 wsclient 中指定超时的正确方法是什么?
我在我的 griffon 控制器中试过这个:
withWs([wsdl: model.wsdl, timeout:1800000])
但它似乎不起作用。
有什么提示吗?
这样做解决了问题:
withWs(wsdl: model.wsdl){ setConnnectionTime(1800000) ... }
没关系,但尝试从调用中删除方括号,就像这样
withWs(wsdl: model.wsdl, timeout:1800000) { ... }
根据 WsclientConnector 的第 101 行,WS 客户端应遵守超时参数
if(params.containsKey('timeout')) client.setConnectionTimeout(params.remove('timeout'))