Hi Francisco,
I tested this scenario.
To direct this response to the fault-sequence,
You can filter the response from the out-sequence of your proxy service,
and call the fault-sequence you want to invoke inside the out-equence using
a filter mediator.
As a simple example it is like this.
<outSequence>
<filter regex="503" source="$axis2:HTTP_SC">
<then>
<sequence key="commonServiceFaultSequence"/>
</then>
<else/>
</filter>
<send/>
</outSequence>
Then you can modify the error message as you want in the fault sequence
using a payload factory mediator.
Thanks,
Chamalee
On Thu, Oct 5, 2017 at 11:51 PM, Júnior <[email protected]> wrote:
> Hi,
>
> I have a ESB Proxy that calls a DSS endpoint. This DSS endpoint is under a
> Load Balancer. When the DSS server is down, the Load Balancer returns a 503
> HTTP Error.
>
> It seems strange to me that the flow is going to the outSequence and not
> to the faultSequence.
>
> Is this the expected behavior?
>
> Is it possible to make such case goes to the faultSequence?
>
> The code to send the request is like below:
>
> <header expression="get-property('myEp')" name="To" scope="default"/>
> <header name="Action" scope="default" value="OpName"/>
> <send />
>
> Thanks,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Thanks & Regards,
*Chamalee De Silva*
Software Engineer
*WS**O2* Inc. :http://wso2.com/
Office :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile :- *+94 7 <%2B94%2077%202782039>1 4315942*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev