<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
    <bean id="wiseservices" class="org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition">
        <constructor-arg value="/WEB-INF/wiseservices.wsdl"/>
    </bean>
    
    <bean id="orderEndpoint" class="com.wisemapping.ws.WiseWsEndpoint">
        <constructor-arg ref="mindmapService"/>
        <constructor-arg ref="userService"/>
    </bean>

    <bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter">
        <constructor-arg ref="marshaller"/>
    </bean>

    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
        <property name="classesToBeBound">
            <list>
                <value>com.wisemapping.ws.LoadMindmapRequest</value>
                <value>com.wisemapping.ws.LoadMindmapResponse</value>
                <value>com.wisemapping.ws.AddMindmapRequest</value>
                <value>com.wisemapping.ws.AddMindmapResponse</value>

            </list>
        </property>
    </bean>
    <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping"/>

    <!-- Security -->
    <!--<bean id="springSecurityHandler"-->
    <!--class="org.springframework.ws.soap.security.xwss.callback.SpringPlainTextPasswordValidationCallbackHandler">-->
    <!--<property name="authenticationManager" ref="wsAuthenticationManager"/>-->
    <!--</bean>-->

    <!--<bean id="wsAuthenticationManager" class="org.springframework.security.providers.ProviderManager">-->
    <!--<property name="providers">-->
    <!--<bean class="org.springframework.security.providers.dao.DaoAuthenticationProvider">-->
    <!--<property name="userDetailsService" ref="userDetailsService"/>-->
    <!--</bean>-->
    <!--</property>-->
    <!--</bean>-->


</beans>