
Untitled
By: a guest on
Sep 16th, 2012 | syntax:
None | size: 0.63 KB | hits: 5 | expires: Never
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;
}