Questions tagged [spring-integration-http]

136 questions
0
votes
1 answer
0
votes
1 answer

Inbound http message validation with JSR303

I'm using Spring Integration to receive an http message and then put it in a channel and do some transformations. I read the documentation (https://docs.spring.io/spring-integration/reference/html/http.html) and it will look like: @Bean public…
italktothewind
  • 1,950
  • 2
  • 28
  • 55
0
votes
1 answer

http:outbound-gateway to follow redirect

I need to request a JWT Token via an HTTP request in my Spring Integration application. I've configured a plain http outbound gatway but the server replies with a 301 Moved Permanently; It requires the client to follow a redirect (and apparently it…
Gibraltar
  • 409
  • 5
  • 15
0
votes
1 answer

Spring Integration - Outbound Gateway - Chaining

I have a FileUpload Event that should be sent over to a http:outbound upload URL. In order to do this I have to first authenticate login URL and get the response and set the session id for outbound upload URL to execute. In my case, I have an event…
MRN
  • 1
  • 1
0
votes
2 answers

Spring Integration - Adding custom headers in Message

I am using Spring Integration filter to do a structural validation of the incoming payload and if the validation fails then i want to add some custom headers to the original message. The filter code is below…
souvikc
  • 991
  • 1
  • 10
  • 25
0
votes
1 answer

Howto use spring security in spring integration http inbound gateway

I want to secure my web service to only let qualified agent to call my service which is exposed by spring integration http inbound gateway, can I use spring security to do that? the simplest way is to use a token in header for verification, however…
0
votes
1 answer

Spring Integration enrich/transform message using Rest call

In Spring Integration, I have message like following : { "name":"House", "attributeIds": [1,3,5] } I need to enrich/transform this message using some Rest Service, which will give me the attribute values. For example…
0
votes
1 answer

IntegrationFlow HttpRequestHandlingMessagingGateway reply directly

I am new to Spring Integration and i am trying to use the HttpRequestExecutingMessageHandler and the HttpRequestHandlingMessagingGateway. The Handler is sending a POST Request and expecting reply. The Gateway is consuming the request. It works fine,…
0
votes
2 answers

Spring Integration HttpRequestExecutingMessageHandler ContentType Issue

I am facing a problem with Spring Integration. I am trying to execute a rest call via HttpRequestExecutingMessageHandler. My rest endpoint is accepting content-type 'application/json' only. The problem is that the HttpRequestExecutingMessageHandler…
0
votes
0 answers

Spring Integration DSL HTTP outbound gateway support byte array as payload

Is it possible to provide a byte array instead of a File to the Http.outboundGateway for multi-part? This implementation is supported by the REST template (see:…
0
votes
2 answers

How to implement POST http endpoint using spring integration?

I have following configuration: @Configuration @EnableIntegration @IntegrationComponentScan public class Config { @Bean public IntegrationFlow integrationFlow() { return…
0
votes
1 answer

Is there a way to make an external service as a subscriber for pubsub model using spring integration

I am new to spring integration , i am trying to achieve the following through spring integration: there are 3 micro services A,B,C , based on some event i would want to publish a message to spring integration channel to which services B and C…
0
votes
1 answer

Spring Integration 5.1 - integration flow test - dsl

I have set up a simple Spring Integration flow which is composed of such steps: poll a rest api periodically then do some processing on the payload and land it on a Kafka topic. Please observe the code below: @Component public class…
0
votes
1 answer

Can SpEL in Spring Integration Router use Java's String class methods

This is an extension question to How to use SpEL to read payload and header content in a Spring Integration Router Technologies in my project Spring Boot 2 Spring Integration (XML style) Java 8 Tomcat 9.x/Liberty 19.0.0.1 As a part of my Spring…
0
votes
1 answer

How to use SpEL to read payload and header content in a Spring Integration Router

Technologies in my project Spring Boot 2 Spring Integration (XML style) Java 8 Tomcat 9.x/Liberty 19.0.0.1 As a part of my Spring Integration project (REST API with an inbound-http-gateway, that takes an XML input and produces an XML output), I am…