Search code examples
javaweb-servicesspring-integrationspring-wsendpoints

Developing Web Services Using Spring-Integration


I have had experience developing web services using Spring-WS before. However, I was wondering if I can develop a web service purely using Spring-Integration using Inbound Gateways etc. If you have experience developing Web-Services using Spring-Integration, can you please provide me some guidance and also provide some references?


Solution

  • I think the good point to start is Spring Integration samples

    There is no nothing special: you configure Servlet Context as before and add bean:

    <bean class="org.springframework.ws.server.endpoint.mapping.UriEndpointMapping">
         <property name="defaultEndpoint" ref="ws-inbound-gateway"/>
    </bean>
    

    Everything other should be done using EIP components: Routers, Filters, Service-Activators etc.

    Another chioce to write service endpoints as before, but delegate hard work to Integration flows using <int:gateway>