Questions tagged [spring-integration-http]

136 questions
1
vote
1 answer

Proxy soap service with spring integration

I am trying to proxy my soap service using spring integration What I want to do is: Receive a SOAP request on a certain endpoint Intercept request header and body, log them And without modification, forward this request to the soap service I read…
1
vote
1 answer

How can I make my Spring integration flow generic to process different requests?

I'm using spring integration in my current project. I want to have a reusable flow for different requests. Config file @Configuration public class IntegrationConfiguration { @Autowired LionsServiceImpl lionsService; long dbId =…
1
vote
1 answer

processing multiple http outbound gateways

I am working on the spring integration http. Wanted to make multiple http calls and collect the response to one common java object. I am facing an issues which says no output/reply channel at the end of the aggregator. This is the xml…
1
vote
1 answer

I want to use Spring integration in my project, please help me with the pattern that I should go with as per my requirement

I want to implement spring integration for my current requirement. The requirement is as follows - I have a service and I need to call 3 services parallelly from it. All the 3 calls are independent calls. Out of the 3 calls 2 calls are HTTP calls(1…
1
vote
0 answers

How to create docs for spring-integration endpoint

I'm using a SpringBoot 2.2.6 WebApplication with Maven 3. I'm also using spring-integration-http for my endpoint, that's mean that my endpoint are similar to follow: @Bean public IntegrationFlow test(CommonTransformer
1
vote
1 answer

Is there a way to call a transformer method to change the payload in spring integration flow

In the below code I'm transforming the payload to a different payload and sending it as a request body to a POST API call. I want to outsource that transformation through a external method call. Is that possible? @Bean public…
1
vote
1 answer

Error handling in PublishSubscribeChannel

I'm using Spring Integration using DSL for handling communication between JMS and REST service. The requirement is that messages should be redelivered indefinetly. In one case, I have to sequentially execute two operations. If first one fails, the…
1
vote
2 answers

How do I configure a http inbound channel adapter with JAVA config in Spring Integration?

I found a xml configured inbound adapter example what I do not fully understand. The configuration specifies a REST request setting request method, consumed format, etc. I thought from the Spring Integration point of view the response should be…
1
vote
1 answer

How can I create http inbound channel adapter with JAVA config in Spring integration?

I have the following http inbound channel adapter. How can I do this configuration with Java Config or Spring DSL?
1
vote
2 answers

Spring Integration code sharing between outbound/inbound

Imagine you have an application (let's call it B) with an inbound HTTP interface (using HTTP is a requirement). You will call it from several different other applications in the future but at the moment you only want to develop a single client…
1
vote
1 answer

Spring Integration - Control retry logic in http outboundAdapter

I configured a route in Spring Integration 5.4.4 that read from an AMQP queue and write to an http outbound adapter. I'm not able to control retries when, for example, I programmatically declare a wrong http hostname for the http outbound adapter…
1
vote
2 answers

Return ResponseEntity from Spring Integration's @Gateway method

I have IntegrationFlow where I call HTTP endpoint: @Bean public IntegrationFlow getInformationFlow(RestTemplate restTemplate) { return IntegrationFlows.from(GET_RESPONSE_ENTITY) .handle(Http .outboundGateway(url +…
Patrik Mihalčin
  • 3,341
  • 7
  • 33
  • 68
1
vote
2 answers

Spring Integration HTTP outbound gateway retry based on reply content

I'm using an API that works in 2 steps: It starts processing of a document in async way where it provides you an id that you use for step 2 It provides an endpoint where you can get the results but only when they are ready. So basically it will…
1
vote
1 answer

Spring Integration HTTP Outbound Gateway header not forwarder on a consecutive request

I'm struggling with the following flow: .enrichHeaders(h -> h.headerFunction("ocp-apim-subscription-key", m -> "xxx")) .handle(Http.outboundGateway("https://northeurope.api.cognitive.microsoft.com/vision/v3" + …
1
vote
1 answer

Why do I have to use .fluxTransform(f -> f) on an inbound webflux gateways when using Java DSL?

I've run into failed replies when using the webflux gateway Java DSL in Spring Integration. It only works for the first few requests (<8 to be specific), I'm getting reply errors afterwards: org.springframework.integration.MessageTimeoutException:…
1
2
3
9 10