private void registerExample(LocatorService client, String service, String endpoint) {
System.out.println("------------------------------");
System.out.println("Register service with endpoint");
System.out.println("ServiceName: ".concat(service));
System.out.println("EndpointURL: ".concat(endpoint));
RegisterEndpointRequest registerEndpointRequest = new RegisterEndpointRequest();
registerEndpointRequest.setBinding(BindingType.JAXRS);
registerEndpointRequest.setTransport(TransportType.HTTPS);
registerEndpointRequest.setEndpointURL(endpoint);
registerEndpointRequest.setServiceName(service);
try {
client.registerEndpoint(registerEndpointRequest);
System.out.println("Endpoint registered successfully");
} catch (WebApplicationException ex) {
System.err.println(ex.getMessage());