<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://ws.apache.org/ns/synapse">

    <proxy name="StockQuoteProxy">
        <target>
            <inSequence>
                <call-template target="test_func">
                    <with-param name="test_key" value="REQUEST PARAM VALUE"/>
                </call-template>
                <send>
                    <endpoint>
                        <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <call-template target="test_func">
                    <with-param name="test_key" value="RESPONSE PARAM VALUE"/>
                </call-template>
                <send/>
            </outSequence>
        </target>
    </proxy>
    <template xmlns="http://ws.apache.org/ns/synapse" name="test_func">
        <parameter name="test_key"/>
        <sequence>
            <log level="full">
                <property name="PARAM" expression="$func:test_key" />
            </log>
        </sequence>
    </template>
</definitions>
