cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r542410 - /incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
Date Tue, 29 May 2007 04:36:56 GMT
Author: gawor
Date: Mon May 28 21:36:48 2007
New Revision: 542410

URL: http://svn.apache.org/viewvc?view=rev&rev=542410
Log:
pass paramter index

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java?view=diff&rev=542410&r1=542409&r2=542410
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsServiceConfiguration.java
Mon May 28 21:36:48 2007
@@ -227,6 +227,9 @@
             }
         }
         if (!isIn && isOutParam(method, paraNumber)) {
+            if (!method.getReturnType().equals(Void.class)) {
+                ret++;
+            }
             for (int i = 0; i < paraNumber; i++) {
                 if (isOutParam(method, i)) {
                     ret++;
@@ -234,12 +237,11 @@
             }
         }
         return ret;
-        
-        
     }
 
     private QName getParameterName(OperationInfo op, Method method, int paramNumber, 
                                    int curSize, String prefix, boolean input) {
+        int partIndex = getPartIndex(method, paramNumber, input);
         method = getDeclaredMethod(method);
         WebParam param = getWebParam(method, paramNumber);
         String tns = null;
@@ -266,7 +268,7 @@
 
         if (local == null || local.length() == 0) {
             if (Boolean.TRUE.equals(isRPC(method)) || !Boolean.FALSE.equals(isWrapped(method)))
{
-                local = getDefaultLocalName(op, method, paramNumber, curSize, prefix);
+                local = getDefaultLocalName(op, method, paramNumber, partIndex, prefix);
             } else {
                 local = getOperationName(op.getInterface(), method).getLocalPart();
                 if (!input) {



Mime
View raw message