You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2008/01/23 09:45:03 UTC

svn commit: r614453 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

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: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org