svn commit: r803172 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r803172 - /camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java

wtam-2
Author: wtam
Date: Tue Aug 11 15:50:50 2009
New Revision: 803172

URL: http://svn.apache.org/viewvc?rev=803172&view=rev
Log:
call getBody(CxfPayload.class) to trigger converter on the response message body

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

Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java?rev=803172&r1=803171&r2=803172&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java (original)
+++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/DefaultCxfBinding.java Tue Aug 11 15:50:50 2009
@@ -484,7 +484,7 @@
         if (dataFormat == DataFormat.POJO) {
             answer = out.getBody();
         } else if (dataFormat == DataFormat.PAYLOAD) {
-            answer = out.getBody();
+            answer = out.getBody(CxfPayload.class);
         } else if (dataFormat == DataFormat.MESSAGE) {
             answer = out.getBody(InputStream.class);
         }