How to set timeout on rpc encoded client?
843833Jan 23 2009 — edited Feb 2 2009Hi,
I have a java webservice that is a client for different other remote web services. Some of the webservices are jax-ws and some of them are RPC encoded.
I know how to set the timeout for the jax-ws web services by doing the following:
((BindingProvider) port).getRequestContext().put("com.sun.xml.ws.request.timeout", this.TIMEOUT);
((BindingProvider) port).getRequestContext().put(JAXWSProperties.CONNECT_TIMEOUT, this.TIMEOUT);
But it doesnt work by doing that on the RPC encoded web services. How do I do that?
Thanks!
//Erik