HTTP

Spring Integration provides support to access external HTTP services as well as to expose HTTP services to an external application.

Prerequisites

Let's add a namespace and relevant Maven dependency so that Spring Integration's HTTP components are available for use in our application:

  • Namepace 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-http= "http://www.springframework.org/schema/integration/http" xsi:schemaLocation= "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration ...

Get Spring Integration Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.