geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r156297 - geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java
Date Sun, 06 Mar 2005 08:09:41 GMT
Author: dblevins
Date: Sun Mar  6 00:09:40 2005
New Revision: 156297

URL: http://svn.apache.org/viewcvs?view=rev&rev=156297
Log:
The element name of the return value should be the name of the Part not the Message

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java?view=diff&r1=156296&r2=156297
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/LightweightOperationDescBuilder.java
Sun Mar  6 00:09:40 2005
@@ -106,15 +106,16 @@
 
         // Map the return message, if there is one
         if (output != null && output.getParts().size() == 1) {
+            Part part = (Part) output.getParts().values().iterator().next();
+
             // Set the element name
-            operationDesc.setReturnQName(output.getQName());
+            QName returnName = part.getElementName() == null ? new QName(part.getName())
: part.getElementName();
+            operationDesc.setReturnQName(returnName);
 
             // Set the element type
-            Part part = (Part) output.getParts().values().iterator().next();
             QName returnType = part.getTypeName() == null ? part.getElementName() : part.getTypeName();
             operationDesc.setReturnType(returnType);
 
-            // Set the java class
             operationDesc.setReturnClass(method.getReturnType());
         }
 



Mime
View raw message