service.getAxisConfiguration());
// create the hello/bye message and send
String uniqueID = getServiceID(config, service);
EndpointReference endpointReference = new EndpointReference(uniqueID);
TargetService targetService = new TargetService(endpointReference);
targetService.setTypes(new QName[] { Util.getTypes(service) });
URI[] scopes = new URI[config.getScopes().size()];
for (int i = 0; i < config.getScopes().size(); i++) {
scopes[i] = new URI(config.getScopes().get(i));
}
targetService.setScopes(scopes);
String[] eprs = service.getEPRs();
URI[] xAddres = new URI[eprs.length];
for (int i = 0; i < eprs.length; i++) {
String epr = eprs[i];
if (epr.endsWith("/")) {
epr = epr.substring(0, epr.length() - 1);
}
xAddres[i] = new URI(epr);
}
targetService.setXAddresses(xAddres);
targetService.setMetadataVersion(config.getMetadataVersion());
Notification notification = new Notification(notificationType, targetService);
serviceClient.fireAndForget(DiscoveryOMUtils.toOM(notification,
OMAbstractFactory.getOMFactory()));
serviceClient.cleanup();