axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandak...@apache.org
Subject svn commit: r614453 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
Date Wed, 23 Jan 2008 08:45:03 GMT
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


Mime
View raw message