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! Go to Solution.
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!