Author: dkulp
Date: Tue Feb 21 21:51:10 2012
New Revision: 1292049

URL: http://svn.apache.org/viewvc?rev=1292049&view=rev
Log:
[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/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java

Modified: 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=1292049&r1=1292048&r2=1292049&view=diff
==============================================================================
--- 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
 (original)
+++ 
cxf/trunk/rt/core/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
 Tue Feb 21 21:51:10 2012
@@ -862,7 +862,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;
             }


Reply via email to