当我为来自客户端的服务调用设置超时时,是否有理由不覆盖默认值?
我已经尝试了所有这些但没有运气。
DictionaryTransferService service = new DictionaryTransferService();
DictionaryTransfer port = service.getDictionaryTransferPort();
((BindingProvider) port).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, 10 * 60 * 1000);
((BindingProvider) port).getRequestContext().put("com.sun.xml.internal.ws.connect.timeout", 5 * 60 * 1000);
((BindingProvider) port).getRequestContext().put("com.sun.xml.internal.ws.request.timeout", 10 * 60 * 1000);
((BindingProvider) port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL.toString());