title: Set timeout on JAX-WS (weblogic)
body: <p>I have a JAX-WS that invokes another WS (the client has been build using JAX-WS). My goal is to set a timeout on the invocation. 
  I know  that I can use:</p>
  
  <pre><code>BindingProviderProperties.CONNECT_TIMEOUT
  BindingProviderProperties.REQUEST_TIMEOUT
  
  public static final java.lang.String CONNECT_TIMEOUT =  "com.sun.xml.internal.ws.connect.timeout";
  public static final java.lang.String REQUEST_TIMEOUT = "com.sun.xml.internal.ws.request.timeout";
  </code></pre>
  
  <p>but these point to com.sun.xml.* classes, and according to Oracle this is considered a very bad practise because these classes are undocumented and might change or be removed.
  source: <a href="http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html" rel="nofollow">www.oracle.com/technetwork/java/faq-sun-packages-142232.html</a></p>
  
  <p>Can somebody point me how I can set a timeout on my invocation without violating Oracles guidelines?</p>