Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set timeout on rpc encoded client?

843833Jan 23 2009 — edited Feb 2 2009
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2009
Added on Jan 23 2009
3 comments
398 views