You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/02/21 22:55:57 UTC

svn commit: r1292052 - /cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Author: dkulp
Date: Tue Feb 21 21:55:57 2012
New Revision: 1292052

URL: http://svn.apache.org/viewvc?rev=1292052&view=rev
Log:
Merged revisions 1292049 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1292049 | dkulp | 2012-02-21 16:51:10 -0500 (Tue, 21 Feb 2012) | 4 lines

  [CXF-4117] Fix issue when building service model where setting the part
  class on output part info's wasn't finding the part by name in the same
  way as setting it on the input part (which is working).

........

Modified:
    cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Modified: cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=1292052&r1=1292051&r2=1292052&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Tue Feb 21 21:55:57 2012
@@ -833,7 +833,19 @@ public class ReflectionServiceFactoryBea
             initializeParameter(part, paramType, genericType);
             part.setIndex(i);
 
+            QName inName = part.getConcreteName();
             part = o.getOutput().getMessagePart(name);
+            
+            if (part == null) {
+                part = o.getOutput().getMessagePart(inName);
+            }
+            if (part == null && isHeader && o.isUnwrapped()) {
+                part = o.getUnwrappedOperation().getOutput().getMessagePart(name);
+                if (part == null) {
+                    part = o.getUnwrappedOperation().getOutput().getMessagePart(inName);
+                }
+            }
+
             if (part == null) {
                 return false;
             }