With Metro/Glassfish...
//1 minute for connection ((BindingProvider) wsPort).getRequestContext().put("com.sun.xml.ws.connect.timeout", 1 * 60 * 1000); //3 minutos for request (("com.sun.xml.ws.request.timeout",0)">3 * 1000);
Best regards!
http://stackoverflow.com/questions/3130913/setting-jax-ws-client-timeout sun自带的webservice 超时通过?
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
import com.sun.xml.ws.developer.JAXWSProperties
?and useJAXWSProperties.CONNECT_TIMEOUT
?and?JAXWSProperties.REQUEST_TIMEOUT
?if someone is not afraid to couple with Sun internals.?–?? dma_k? Sep 29 '10 at 8:03