--- WebServiceVisitor.java 2006-08-16 23:23:40.000000000 -0400 +++ WebServiceVisitor_new.java 2006-09-02 14:45:54.000000000 -0400 @@ -612,6 +612,10 @@ protected boolean isLegalMethod(MethodDeclaration method, TypeDeclaration typeDecl) { if (hasWebMethods && method.getAnnotation(WebMethod.class) == null) return true; + if (!method.getModifiers().contains(Modifier.PUBLIC)) + return false; + if (method.getAnnotation(WebMethod.class).exclude()) + return false; if (typeDecl instanceof ClassDeclaration && method.getModifiers().contains(Modifier.ABSTRACT)) { builder.onError(method.getPosition(), "webserviceap.webservice.method.is.abstract", typeDecl.getQualifiedName(), method.getSimpleName());