At the moment I am using the following synapse.xml configuration file to
send a WS request to 2 different service implementations (that is a
requirement so it can't be changed):

    <in>
        <filter source="get-property('To')" regex=".*/Event.*">
            <clone continueParent="true">
                <target>
                    <endpoint>
                        <address uri="
http://192.168.239.1:8080/EventService/services/Event"/>
                    </endpoint>
                </target>
            </clone>
            <send>
                <endpoint>
                    <address uri="http://192.168.239.128:9000/services/Event
"/>
                </endpoint>
            </send>
            <drop/>
        </filter>
    </in>
    <out>
        <send/>
    </out>


The problem is that both of those return a response and I was wondering if I
could use synapse to filter out the response from a particular response
source, or do I need to rewrite one of those services to not return a
response (which I'm guessing is a bit tricky since Axis2 might be inclined
to use a InOutMessageReceiver based on the service's WSDL.)

Which would be a decent and simple solution to my problem ?

Thank you,
Florin

Reply via email to