osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to throw soap fault from otherwise clause? if no expected operationname found


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();