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/fbb97efb Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fbb97efb Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fbb97efb
Branch: refs/heads/camel-2.20.x Commit: fbb97efb26f46fb734c7c48c36b67119016ae520 Parents: 54b34c9 Author: richardgroote <[email protected]> Authored: Thu Oct 12 11:33:35 2017 +0200 Committer: Claus Ibsen <[email protected]> Committed: Thu Oct 12 15:59:01 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/fbb97efb/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); } }
