Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
MessageDispatcherServlet is the core component of Spring-WS. With simple configuration, a Web-Service can be set up in minutes. This servlet came as a simple way to configure an alternative to the Spring-MVC DispatcherServlet. As in the second recipe, Setting up a Web-Service using DispatcherServlet, DispatcherServlet needs separate instances of WebServiceMessageReceiverHandlerAdapter, MessageDispatcher, and WsdlDefinitionHandlerAdapter. However, MessageDispatcherServlet can dynamically detect EndpointAdapters, EndpointMappings, EndpointExceptionResolvers, and WsdlDefinition by setting inside the application context.
Since this is the default method for configuring Spring Web-Services, it will be used in later recipes. In this recipe, a very basic implementation of setting up a Spring-WS is detailed. More advance implementation will be explained later in the recipe Setting up a contract-first Web-Service.