camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r798988 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
Date Wed, 29 Jul 2009 17:34:13 GMT
Author: wtam
Date: Wed Jul 29 17:34:13 2009
New Revision: 798988

URL: http://svn.apache.org/viewvc?rev=798988&view=rev
Log:
CxfProducer should call getBody(CxfPayLoad.class) to trigger converter if necessary

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

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java?rev=798988&r1=798987&r2=798988&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
(original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfProducer.java
Wed Jul 29 17:34:13 2009
@@ -166,7 +166,7 @@
             }
         } else if (endpoint.getDataFormat() == DataFormat.PAYLOAD) {
             params = new Object[1];
-            params[0] = exchange.getIn().getBody();
+            params[0] = exchange.getIn().getBody(CxfPayload.class);
         } else if (endpoint.getDataFormat() == DataFormat.MESSAGE) {
             params = new Object[1];
             params[0] = exchange.getIn().getBody(InputStream.class);



Mime
View raw message