WebServiceProvider webServiceProvider =
(WebServiceProvider)clazz.getAnnotation(WebServiceProvider.class);
if (webServiceProvider == null) {
throw new IllegalArgumentException("The " + clazz.getName() + " is not annotated");
}
return getServiceQName(clazz, webServiceProvider.targetNamespace(), webServiceProvider.serviceName());
} else {
return getServiceQName(clazz, webService.targetNamespace(), webService.serviceName());
}
}