WebService eiAnnotation = ei.getAnnotation(WebService.class);
if (!"".equals(eiAnnotation.serviceName())) {
result.addError(ei, "CXF fails if you specify 'serviceName' on an endpoint interface.");
}
if (!"".equals(eiAnnotation.portName())) {
result.addError(ei, "CXF fails if you specify 'portName' on an endpoint interface.");
}
for (MethodDeclaration m : ei.getMethods()) {
javax.jws.WebMethod wm = m.getAnnotation(javax.jws.WebMethod.class);
if (wm != null && wm.exclude()) {
result.addError(m, "CXF fails if you specify 'exclude=true' on an endpoint interface.");