private void processMethod(WSDLModel wmodel, Method method) {
if (!Modifier.isPublic(method.getModifiers())) {
return;
}
WebMethod webMethod = AnnotationUtil.getPrivMethodAnnotation(method, WebMethod.class);
if (webMethod == null || (webMethod != null && webMethod.exclude())) {
return;
}
JavaMethod javaMethod = new JavaMethod();
// rule 3.5
String operationName = method.getName();
if (!method.getDeclaringClass().equals(seiClass)) {
try {
Method tmp = seiClass.getMethod(method.getName(), (Class[])method.getParameterTypes());
operationName = tmp.getName();
} catch (NoSuchMethodException e) {
throw new ToolException(e.getMessage(), e);
}
}
if (webMethod != null) {
operationName = webMethod.operationName().length() > 0
? webMethod.operationName() : operationName;
}
javaMethod.setName(operationName);
javaMethod.setSoapAction(webMethod.action());
if (isAsynMethod(method)) {
return;
}