Re: [Dev] WSO2 Backend Returning 503 HTTP Status Code

2017-10-08 Thread Júnior
Thank you, Chamalee!

2017-10-06 12:00 GMT-03:00 Chamalee De Silva :

> 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.
>
> 
>  
> 
>
> 
> 
>  
>  
> 
>
> 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  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:
>>
>> 
>> 
>> 
>>
>> Thanks,
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> 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*
>
>


-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Backend Returning 503 HTTP Status Code

2017-10-06 Thread Chamalee De Silva
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.


 

   


 
 


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  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:
>
> 
> 
> 
>
> Thanks,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> 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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Backend Returning 503 HTTP Status Code

2017-10-05 Thread Júnior
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:





Thanks,
-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev