camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r953122 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
Date Wed, 09 Jun 2010 19:24:42 GMT
Author: wtam
Date: Wed Jun  9 19:24:42 2010
New Revision: 953122

URL: http://svn.apache.org/viewvc?rev=953122&view=rev
Log:
CAMEL-2802 Camel-cxf does not properly populate MessageContentList for PAYLOAD mode

Modified:
    camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java?rev=953122&r1=953121&r2=953122&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfEndpoint.java
Wed Jun  9 19:24:42 2010
@@ -555,7 +555,8 @@ public class CxfEndpoint extends Default
                 int i = 0;
                 
                 for (MessagePartInfo partInfo : boi.getOperationInfo().getInput().getMessageParts())
{
-                    if (elements.size() > i) {
+                    if (elements.size() > i && partInfo.getConcreteName().getLocalPart()
+                        .equals(elements.get(i).getLocalName())) {
                         content.put(partInfo, elements.get(i++));
                     }
                 }



Mime
View raw message