fipries
fipries

Reputation: 386

WSO2 ESB launch on error sequence when fault received

I need to launch the on error sequence o generate a internal error when I receive a soap fault response in my orchestration. Something like throw an exception in Java.

An easy way is to set a filter in each sequence so that, when a fault tag is received, the onError sequence is launched. I guess there must be better ways to do this.

How can I make soap fault responses are treated like an error so that the on error sequence is launched?

Upvotes: 2

Views: 1180

Answers (2)

Amila Maharachchi
Amila Maharachchi

Reputation: 2149

This was not straight-forward until WSO2 ESB 4.5.0 (which is the latest release). There is new property introduced "FORCE_ERROR_ON_SOAP_FAULT" to get this done. See this post for a sample configuration.

Upvotes: 1

Ratha
Ratha

Reputation: 9702

In your proxy configuration, define the fault sequence..

Upvotes: 0

Related Questions