Wang Yan
2018-11-15 20:28:26 UTC
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();
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();