Author: sandakith Date: Wed Jan 23 00:45:01 2008 New Revision: 614453 URL: http://svn.apache.org/viewvc?rev=614453&view=rev Log: Fixed the issue in JSR 181 Annotated POJO with no param webMethod annotation , WSDL generation failing
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?rev=614453&r1=614452&r2=614453&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original) +++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Wed Jan 23 00:45:01 2008 @@ -411,7 +411,11 @@ JAnnotation methodAnnon = method.getAnnotation(AnnotationConstants.WEB_METHOD); if (methodAnnon != null) { if (methodAnnon.getValue(AnnotationConstants.OPERATION_NAME) !=null) { - return methodAnnon.getValue(AnnotationConstants.OPERATION_NAME).asString(); + String methodName = methodAnnon.getValue(AnnotationConstants.OPERATION_NAME).asString(); + if(methodName.equals("")){ + methodName = method.getSimpleName(); + } + return methodName; } } return method.getSimpleName(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]