Re: [Dev] In a ESB sequence, how to continue process in case of error

2017-10-25 Thread Isuru Udana
Hi Thomas,

In ESB, 404 response is treated as a legitimate message (as similar to
other responses like 200 OK). So neither flow getting stopped nor fault
sequence is getting invoked in this case. Basically message flow behaves
same for both 404 and 200 responses.

If you can provide more details about the issue including your synapse
configurations, we'll able to help you to achieve your requirement.

Thanks.

On Wed, Oct 25, 2017 at 2:40 PM, Vinod Kavinda  wrote:

> Hi Thomas,
> You can control the error scenarios in your Fault Sequence. If you haven't
> added a fault sequence to your proxy service/ API the default fault
> sequence will be invoked. If you want to control the error scenario, add a
> fault sequence to your synapse configuration and include the relevant logic.
>
> Refer [1] for more info.
>
> [1] - https://docs.wso2.com/display/ESB500/Error+Handling
>
> Regards,
> Vinod
>
> On Mon, Oct 23, 2017 at 4:02 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello,
>>
>> I have an inbound endpoint calling a sequence once triggered. In this
>> sequence, I call a REST API which can return a 404 causing the whole
>> sequence and subsequences to stop. But the return of the API is useful and
>> I would like to continue the process with it even if it is a 404.
>>
>> Have you any idea how I can achieve that ?
>>
>> Regards,
>>
>> Thomas
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Isuru Udana*
Senior Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] In a ESB sequence, how to continue process in case of error

2017-10-25 Thread Vinod Kavinda
Hi Thomas,
You can control the error scenarios in your Fault Sequence. If you haven't
added a fault sequence to your proxy service/ API the default fault
sequence will be invoked. If you want to control the error scenario, add a
fault sequence to your synapse configuration and include the relevant logic.

Refer [1] for more info.

[1] - https://docs.wso2.com/display/ESB500/Error+Handling

Regards,
Vinod

On Mon, Oct 23, 2017 at 4:02 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> I have an inbound endpoint calling a sequence once triggered. In this
> sequence, I call a REST API which can return a 404 causing the whole
> sequence and subsequences to stop. But the return of the API is useful and
> I would like to continue the process with it even if it is a 404.
>
> Have you any idea how I can achieve that ?
>
> Regards,
>
> Thomas
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] In a ESB sequence, how to continue process in case of error

2017-10-23 Thread Thomas LEGRAND
Hello,

I have an inbound endpoint calling a sequence once triggered. In this
sequence, I call a REST API which can return a 404 causing the whole
sequence and subsequences to stop. But the return of the API is useful and
I would like to continue the process with it even if it is a 404.

Have you any idea how I can achieve that ?

Regards,

Thomas
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev