Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x 7f87a25b2 -> 252c74f7c
  refs/heads/camel-2.20.x 54b34c970 -> 27fd53285
  refs/heads/master ece63d7c9 -> 88f11a4c5


CAMEL-11898: Attachment are not in the response

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/732a8f5e
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/732a8f5e
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/732a8f5e

Branch: refs/heads/camel-2.19.x
Commit: 732a8f5e2da0971bfb61ebca85a4352afdeec681
Parents: 7f87a25
Author: richardgroote <32516488+richardgro...@users.noreply.github.com>
Authored: Thu Oct 12 11:33:35 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Thu Oct 12 15:56:57 2017 +0200

----------------------------------------------------------------------
 .../camel/component/spring/ws/filter/impl/BasicMessageFilter.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/732a8f5e/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java
----------------------------------------------------------------------
diff --git 
a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java
 
b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java
index aae2538..f308368 100644
--- 
a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java
+++ 
b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java
@@ -47,7 +47,8 @@ public class BasicMessageFilter implements MessageFilter {
     @Override
     public void filterConsumer(Exchange exchange, WebServiceMessage response) {
         if (exchange != null) {
-            processHeaderAndAttachments(exchange.getOut(), response);
+            Message responseMessage = exchange.hasOut() ? 
exchange.getOut(Message.class) : exchange.getIn(Message.class);
+            processHeaderAndAttachments(responseMessage, response);
         }
     }
 

Reply via email to