i simple put .throwException(new Exception("error happened")), then looks
like camel route convert exception to soapfault automatically.
i even did not handlefault on route.

On Thu, Nov 15, 2018 at 9:28 PM Wang Yan <wyan...@gmail.com> wrote:

> Hello all,
>
> how to throw soap fault from otherwise clause? if no expected
> operationname found.
> any suggestions?
>
> from(SOAP_ENDPOINT_OUT_URI )
> .choice()
> .when(simple("${in.headers.operationName} == 'getcity'"))
> .to(SOAP_ENDPOINT_MOCK_CITY)
> .when(simple("${in.headers.operationName} == 'getcountry'"))
> .to(SOAP_ENDPOINT_MOCK_COUNTRY")
> .otherwise().log(LoggingLevel.DEBUG, "#####  No operationname found
> #####")
> .end();
>

Reply via email to