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