private static VboxPortType getPortType(String url) { if (null == port) { VboxService svc = new VboxService(); port = svc.getVboxServicePort(); ((BindingProvider) port) .getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url); } return port; }
private static VboxPortType getPortType() { if (null == port) { VboxService svc = new VboxService(); port = svc.getVboxServicePort(); ((BindingProvider) port) .getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:18083/"); } return port; }