Hi Adriaan,

Can you please attach the DEBUG log of the scenario, I think the message
causing the fault doesn't come to the proxy service :-(,

Thanks,
Ruwan

On Thu, Aug 13, 2009 at 11:47 AM, Adriaan Wisse <[email protected]> wrote:

> Hello,
>
> I'm trying to handle faults in a Synapse Proxy Service the following way:
>
> <proxy name="Proxy1" transports="http,https">
> <target>
>   <inSequence>
>      <send>
>         <endpoint>
>             <address uri="http://localhost:8300/soap/MyService"/>
>          </endpoint>
>      </send>
>   </inSequence>
>   <outSequence>
>      <send />
>   </outSequence>
>   <faultSequence>
>      <makefault version="soap11">
>            <code value="tns:Server" xmlns:tns="
> http://schemas.xmlsoap.org/soap/envelope/"/>
>            <reason expression="get-property('ERROR_MESSAGE')"/>
>       </makefault>
>       <header name="To" action="remove"/>
>       <property name="RESPONSE" value="true"/>
>       <send/>
>   </faultSequence>
> </target>
> </proxy>
>
> But somehow this is not working and my faults are still handled by the
> default 'fault' sequence.
>
> If I specify it like this everything works fine.
>
> <proxy name="Proxy1" transports="http,https">
>    <target>
>        <inSequence>
>            <send>
>                <endpoint>
>                        <address uri="http://localhost:8300/soap/MyService
> "/>
>                  </endpoint>
>            </send>
>        </inSequence>
>        <outSequence>
>            <send />
>        </outSequence>
>    </target>
> </proxy>
>
> <sequence name="fault">
>        <makefault version="soap11">
>                <code value="tns:Server" xmlns:tns="
> http://schemas.xmlsoap.org/soap/envelope/"/>
>               <reason expression="get-property('ERROR_MESSAGE')"/>
>         </makefault>
>        <header name="To" action="remove"/>
>        <property name="RESPONSE" value="true"/>
>        <send/>
> </sequence>
>
> What am I doing wrong? I prefer to use the customized faultSequence because
> I only need it in specific situations.
> By the way: I'm using Synapse 1.2
>
> Greets,
>
> Adriaan
>



-- 
Ruwan Linton
Technical Lead & Product Manager; WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.org
email: [email protected]; cell: +94 77 341 3097
blog: http://ruwansblog.blogspot.com

Reply via email to