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