Created
July 23, 2012 13:36
-
-
Save MPriess/3163630 to your computer and use it in GitHub Desktop.
cxf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public FooWS getEndpoint() throws MalformedURLException { | |
if (webservice == null) { | |
FooWS client = new FooWSService(new URL(wsEndpoint)).getFooWSPort(); | |
if (timeout != -1) | |
{ | |
Client cl = ClientProxy.getClient(client); | |
HTTPConduit http = (HTTPConduit)cl.getConduit(); | |
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); | |
httpClientPolicy.setConnectionTimeout(timeout); | |
http.setClient(httpClientPolicy); | |
} | |
this.webservice = client; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment