<synapse xmlns="http://ws.apache.org/ns/synapse">
    <stage name="xpath">
        <xpath expr="//ns:text" xmlns:ns="urn:text-body">
            <engage-addressing-out/>
            <classmediator name="simpleRouting" class="org.apache.synapse.mediators.SampleRouter"/>
            <send/>
        </xpath>
        <xpath expr="//ns:response_text" xmlns:ns="urn:text-body">
            <send/>
        </xpath>
        <xpath expr="//ns:text_addressing" xmlns:ns="urn:text-body">
            <engage-addressing-in/>
            <header type="to" value="http://localhost:8090/axis2/services/npe"/>
            <header type="action" value="urn:synapse/sendon-addressing-engage"/>
            <send/>
        </xpath>
        <xpath expr="//ns:response_text_addressing" xmlns:ns="urn:text-body">
            <send/>
        </xpath>

    </stage>
</synapse>