[
https://issues.apache.org/activemq/browse/CAMEL-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41745#action_41745
]
Willem Jiang commented on CAMEL-266:
------------------------------------
I'd like to throwFault like this
from("cxf:consumer").filter().xquery("/foo/bar =
'abc').throwFault("ExceptionMessage").end().to("success");
or
SoapFault fault = new SoapFault();
//setting the fault message
from("cxf:consumer").filter().xquery("/foo/bar =
'abc').throwFault(fault).end().to("success");
> make it easy to throw a SOAP fault in a Camel route
> ---------------------------------------------------
>
> Key: CAMEL-266
> URL: https://issues.apache.org/activemq/browse/CAMEL-266
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core, camel-cxf
> Reporter: James Strachan
> Assignee: Willem Jiang
>
> we should be able to easily throw an exception or a SOAP fault from inside a
> Camel route. e.g. something vaguely like..
> {code}
> from("foo").
> filter().xquery("/foo/bar =
> 'abc').throwFault().xquery("<someFaultExpression/>").end().
> to("success");
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.