Category Archives: jax-ws

Set Endpoint Address in JAX-WS Client

try { HelloService service = new HelloService ( new URL("http://new/endpointaddress?wsdl"), new QName("http://example.org/hello", "HelloService ")); } catch (MalformedURLException e) { log.fatal(e); }   HelloPort proxy = service.getHelloPort(); proxy.sayHello("Hello World!"); You can also use BindingProvider.ENDPOINT_ADDRESS_PROPERTY to override endpoint address. One caveat is … Continue reading

Posted in jax-ws | 1 Comment