concept web service framework in category spring

This is an excerpt from Manning's book Spring Dynamic Modules in Action.
Web service frameworks provide remote access to services using web technologies such as SOAP and REST. They’re generally responsible for handling underlying technology complexities and for routing requests to the right recipients. Most frameworks of this kind provide integration with Spring, which allows the use of dependency injection when configuring resources. Because of this support, integrating with Spring is generally easy and consists of injecting OSGi services configured through Spring DM into resource-handling abstractions.
The key abstractions of web service frameworks are request handlers (endpoints for Spring WS and resources for Restlet). These abstractions are responsible for handling requests and implementing functionality, which can be done by using other entities such as OSGi services. Integrating Spring DM with these frameworks is a simple matter of using OSGi services inside action implementations.
Figure 8.4 shows the interactions between Spring DM and a web service framework that enable them to work together.
Figure 8.4. Using OSGi web application contexts and OSGi services based on Spring DM from web service frameworks
![]()
That’s the general concept behind integrating Spring DM with web service frameworks. Now we’ll consider the implementation details when using Spring WS and Restlet.