title: Setting jax-ws client timeout
body: <p>I've trouble setting jax-ws timeout. My code is:</p>
  
  <pre><code>@WebServiceClient(name = "VoipDBJDBCService", targetNamespace = "http://db.server.voipmeter.jextreme.eu/", wsdlLocation = "http://trace0.nyc.blinkmind.com:8080/voipdb?wsdl")
  public class VoipDBJDBCService extends Service {
      public VoipDBJDBCService(URL wsdlLocation) {
          super(wsdlLocation, new QName("http://db.server.voipmeter.jextreme.eu/", "VoipDBJDBCService"));
      }
  
      @WebEndpoint(name = "VoipDBJDBCPort")
      public VoipDB getVoipDBJDBCPort() {
          return super.getPort(new QName("http://db.server.voipmeter.jextreme.eu/", "VoipDBJDBCPort"), VoipDB.class);
      }
  }
  </code></pre>
  
  <p>And the usage:</p>
  
  <pre><code>VoipDB db = new VoipDBJDBCService(new URL(url)).getVoipDBJDBCPort();
  </code></pre>
  
  <p>How do i Hook in timeouts ? I've found "solution" here: <a href="https://jax-ws.dev.java.net/guide/HTTP_Timeouts.html" rel="noreferrer">https://jax-ws.dev.java.net/guide/HTTP_Timeouts.html</a> but I don't know where I shall hook it in. How to obtain proxy ? When I call getPort client tries to connect and then hangs forever if server is not responding.</p>
  
  <p>UPDATE:
  This code is invoked from within applets init() method if that makes any difference. </p>