concept Spring WS in category spring

appears as: Spring WS, Spring WS, Spring WS
Spring Integration in Action

This is an excerpt from Manning's book Spring Integration in Action.

Examples of event-driven endpoint types supported in Spring Integration include web services (through Spring WS), Remote Method Invocation (RMI), and JMS (where Spring’s listener container takes care of the polling). Again, you can generically create a custom event-driven endpoint using the @Gateway annotation.

12.1. XML web services with Spring WS

Spring WS is a Spring portfolio project that focuses on contract-first web services with XML payloads. As mentioned before, not all XML web services use SOAP. Spring WS provides support for POX-based web services, among others. One of the strongest points of Spring WS is that it decouples application code from the relatively complex requirements of SOAP. Developers can code agnostic to the fact that SOAP is being used except where the application requires control over those details. Without the use of an abstraction like Spring WS, the creation of even a simple SOAP message, as in the following example, is relatively complex; it requires a good understanding of XML APIs and namespace usage:

Spring Dynamic Modules in Action

This is an excerpt from Manning's book Spring Dynamic Modules in Action.

8.4.2. Using Spring WS with Spring DM

Spring WS is a Spring community project dedicated to implementing web services using SOAP. Leveraging Spring facilities such as dependency injection and annotations, it provides a contract-first approach to implementing web services. The framework naturally integrates with Spring DM because it uses Spring’s web application context for its configuration.

As usual when using external libraries in an OSGi environment, some packages must be specified in the Import-Package header of the manifest file of the bundle using Spring WS. Listing 8.28 shows the extra packages that are required.

Listing 8.28. Packages to import for Spring WS

We’ve shown in this section that using Spring DM with Spring WS to implement SOAP-based web services is relatively simple. The integration between the two frameworks is natural and is based on the web application context provided by Spring DM. Once this web application context is configured, you can reference OSGi services through Spring DM in endpoint implementations.