Hi Jeremy

The makefault mediator simply replaces the message with a SOAP fault. To
send the error back to the caller, you need to remove the 'To' header
and mark the message as a RESPONSE to change the direction. (Check
sample # 5 as well) I have copied the update you require below

asankha

> <filter source="get-property('To')" regex=".*/.*">
>
>         <makefault>
>
>                 <code value="tns:Receiver"
>
>  
> xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>
>                 <reason value="Wrong service" />                
>
>         </makefault>    
>   

*        <property name="RESPONSE" value="true"/>
        <header name="To" action="remove"/>*

>         <log level="full" />    
>
>         <send/>
>
> </filter>
>
>   

Reply via email to