Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

DefaultFaultRule in proxy endpoint, executing after faults in target endpoint

Hi, I have implemented a defaultFaultRule in my proxy endpoint as follows 

 

 

 

<DefaultFaultRule>
    <Step>
        <Name>AM-ErrorMessage/Name>
    </Step>
    <AlwaysEnforce>true</AlwaysEnforce>
</DefaultFaultRule>

 

 

 

I've noticed that when the alwaysenforce element is set to true, this condition is evaluated even if the error occurred at the target endpoint, when alwaysenforce is false it is not evaluated if the error comes from the target endpoint.

It does not make sense to me that the faultRules defined in the proxy endpoint are executed in the target endpoint so I would like to know if this behavior is due to a bug or it is an expected behavior, thank you in advance.

 

Solved Solved
0 4 228
1 ACCEPTED SOLUTION

This is expected behavior. 

 

View solution in original post

4 REPLIES 4

This is expected behavior. 

 

Hi @dchiesa1 , thank you for your response, in that case I would like to know why when AlwaysEnforce is set to false this DefaultFaultRule is not evaluated. Thanks 

That's just how it works. I don't have an answer for "WHY" it works that way.  It just works that way. 

Ok, thank you for your answer!