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());
}
}
private static QName getPortQName(Class clazz, String namespace, String name, String portName) {
return new QName(getNamespace(clazz, namespace), getPortName(clazz, name, portName));