Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 16th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     public FooWS getEndpoint() throws MalformedURLException {
  2.         if (webservice == null) {
  3.  
  4.             FooWS client = new FooWSService(new URL(wsEndpoint)).getFooWSPort();
  5.            
  6.             if (timeout != -1)
  7.             {
  8.                 Client cl = ClientProxy.getClient(client);
  9.                
  10.                 HTTPConduit http = (HTTPConduit)cl.getConduit();
  11.                 HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
  12.                 httpClientPolicy.setConnectionTimeout(timeout);
  13.                 http.setClient(httpClientPolicy);
  14.             }
  15.            
  16.             this.webservice = client;
  17.         }