<?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">

    <!-- is this file used?  i had the impression it was used somehow by AxisExternalServerTest
         as part of external tests, but now cannot see how -->

    <axis:endpoint name="calculatorAddEndpoint"
                   address="http://localhost:62088/axis/Calculator?method=add"
                   style="WRAPPED" use="LITERAL">
        <axis:soap-method method="add">
            <axis:soap-parameter parameter="Number1" type="int" mode="IN"/>
            <axis:soap-parameter parameter="Number2" type="int" mode="IN"/>
            <axis:soap-return type="int"/>
        </axis:soap-method>
    </axis:endpoint>

    <model name="test">
        <service name="Calculator">
            <inbound>
                <axis:inbound-endpoint address="http://localhost:62088/axis"/>
            </inbound>
            <component>
                <singleton-object class="org.mule.transport.soap.axis.Calculator">
                    <!-- it's not clear to me (ac) that this is correct.  and if it is, shouldn't we have something simpler? -->
                    <!-- also, email to daniel pending about simpler syntax seen in axis-named-param-mule-config.xml -->
                    <properties>
                        <spring:entry key="style" value="document"/>
                        <spring:entry key="use" value="literal"/>
                        <spring:entry key="soapMethods">
                            <spring:list>
                                <spring:bean class="org.mule.transport.soap.SoapMethod">
                                    <!-- the strange qname syntax here will generate a QName instance via a property editor -->
                                    <spring:constructor-arg value="qname{add:http://muleumo.org/Calc}"/>
                                    <spring:constructor-arg>
                                        <spring:list>
                                            <spring:value>Number1;int;in</spring:value>
                                            <spring:value>Number2;int;in</spring:value>
                                            <spring:value>return;int</spring:value>
                                        </spring:list>
                                    </spring:constructor-arg>
                                </spring:bean>
                            </spring:list>
                        </spring:entry>
                    </properties>
                </singleton-object>
            </component>
        </service>
    </model>

</mule>
