cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r540690 - /incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Date Tue, 22 May 2007 18:38:34 GMT
Author: dkulp
Date: Tue May 22 11:38:32 2007
New Revision: 540690

URL: http://svn.apache.org/viewvc?view=rev&rev=540690
Log:
Fix regression of rpc/lit headers not being generated properly

Modified:
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?view=diff&rev=540690&r1=540689&r2=540690
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
(original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Tue May 22 11:38:32 2007
@@ -711,9 +711,12 @@
                 }
 
                 if (isHeader(method, j)) {
-                    //part.setElementQName(q);
-                    part.setProperty(ELEMENT_NAME, q);
                     part.setProperty(HEADER, Boolean.TRUE);
+                    if (isRPC(method) || !isWrapped(method)) {
+                        part.setElementQName(q);
+                    } else {
+                        part.setProperty(ELEMENT_NAME, q);
+                    }
                 }
                 part.setIndex(j);
             }



Mime
View raw message