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.
Web services support can be added by including the following namespaces and Maven dependencies: