Skip to content

Instantly share code, notes, and snippets.

Avatar

Donato dmarrazzo

  • Red Hat
  • Roma, Italia
View GitHub Profile
@aviramsegal
aviramsegal / gist:3075966
Created Jul 9, 2012
JAX-WS Custom Endpoint
View gist:3075966
/**
* The following snippets shows how to set a custom endpoint for a JAX-WS generated WebClient on runtime
*/
// Get the service and the port
SampleService service = new SampleService();
Sample port = service.getESamplePort();
// Use the BindingProvider's context to set the endpoint
BindingProvider bp = (BindingProvider)port;
You can’t perform that action at this time.