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:
<beans xmlns= "http://www.springframework.org/schema/beans" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xmlns:int= "http://www.springframework.org/schema/integration" xmlns:int-ws= "http://www.springframework.org/schema/integration...