<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:axis="http://www.mulesource.org/schema/mule/axis/2.0"
    xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/axis/2.0 http://www.mulesource.org/schema/mule/axis/2.0/mule-axis.xsd">

    <!-- TODO how to set the serverUrl in spring config files? -->

    <model name="Testing_an_axis_service_using_cxf_dynamic_client">
        <!-- hosting the Axis Service -->
        <service name="AxisService">
            <inbound>
                <axis:inbound-endpoint address="http://localhost:63381/services"
                        style="WRAPPED" use="LITERAL"/>
            </inbound>
            <component class="org.mule.tck.testmodels.services.TestComponent"/>
        </service>

        <!-- Bridge Component used to test the ExceptionBasedRouting on Axis -->
        <service name="test">
            <inbound>
                <inbound-endpoint address="vm://localhost.test"/>
                <forwarding-router/>
            </inbound>
            <outbound>
                <exception-based-router>
                    <outbound-endpoint address="axis:http://localhost:63380/services/AxisService?method=receive"/>
                    <outbound-endpoint address="axis:http://localhost:63381/services/AxisService?method=receive"/>
                </exception-based-router>
            </outbound>
        </service>

        <!-- Accessing an Axis hosted web-service using XFire dynamic client -->
        <service name="BridgeToAxisService">
            <inbound>
                <inbound-endpoint address="vm://axis.in"/>
                <forwarding-router/>
            </inbound>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint
                            address="wsdl-cxf:http://localhost:63381/services/AxisService?wsdl&amp;method=receive"/>
                </outbound-pass-through-router>
            </outbound>
        </service>
    </model>
</mule>
