which way for RESTful webservice, Spring-WS payloads or Spring 3 MVC REST Controllers?
问题 Im beginner for Spring Webservices . Im trying to create contract-first web services using spring-ws 2.0 . I have done web.xml (MessageDispatcherServlet) configurations, my contract-design (XSD), generated JAXB classes and service implementations. Im confused in Endpoints. Which one of the following, mvc rest controllers or enpoints, is correct to use in which scenario and why? Thanks in advance. @Endpoint public class PersonEndpoint { @Autowired private PersonServiceImpl personService;