Hi guys,

a colleague of mine wanted to create a simple Client from a WSDL. Having worked on the server side and SOAP UI as client, it was relatively simple.

But I could not find the right documentation for setting up a WS client.

Does he need to generate the subs?

I could not find where in the config should we set the WSDL location.

Code:
<beans>

    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>

    <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
        <constructor-arg ref="messageFactory"/>
        <property name="defaultUri" value="http://example.com/WebService"/>
    </bean>

</beans>


Cheers
Kris