Web services

The HTTP adapter and gateways provide support for REST-based web services, but Spring Integration also provides support for XML-based web services such as SOAP. An inbound adapter or gateway is used to create and expose an endpoint as a web service, while an outbound adapter or gateway is used to invoke external services. Spring Integration support for web services is built over the spring ws project. I am not going to cover spring ws or any specific SOAP details such as wsdl, header, body, or payload. Instead, we will showcase the Spring Integration wrappers.

Prerequisites

Web services support can be added by including the following namespaces and Maven dependencies:

  • Namespace support can be added using the following code snippet:

Get Spring Integration Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.