web-servicesspringsoapspring-wsspringsource

Spring Web Services and Soap


What is the best class/bean to use for a Java Soap Web Service? I am a .NET guy and can't really tell from any articles on the web.


Solution

  • If you like to use spring-ws, just follow the tutorial on Spring Source. Basically, you have to

    1. define a dispatcher for SOAP requests in your web.xml file
    2. define a given WSDL in your spring-ws context XML file
    3. annotate any Bean with @Endpoint, and one method with @PayloadRoot(...)

    These are the first basic steps to create a web service endpoint with Spring WS.