Questions tagged [spring-integration-http]

136 questions
0
votes
1 answer

Poll on HttpOutboundGateway

@Bean public HttpMessageHandlerSpec documentumPolledInbound() { return Http .outboundGateway("/fintegration/getReadyForReimInvoices/Cz", restTemplate) .expectedResponseType(String.class) .errorHandler(new…
0
votes
1 answer

How to set an ID to a http inbound gateway (DSL-style)?

In my Spring Boot application, I have the following inbound-gateway (Java DSL): @Bean public IntegrationFlow upperCaseFlow() { return IntegrationFlows .from( …
0
votes
0 answers

HTTP Outbound Gateway - RestTemplate that depends on Message

I would like to configure the RestTemplate that will be used by the HTTP Outbound Gateway based on the Message (e.g. get authentication information from the payload). Is there a way to achieve this, preferably with Java DSL? The API seems to allow a…
0
votes
1 answer

How to set SOAP Envelope Header in Spring Integration with data from int-http:inbound-gateway?

I tried to build a simple spring integration project where I get a REST request and convert it to a SOAP request. Something like:
0
votes
1 answer

MarshallingWebServiceOutboundGateway takes too much for the first request

We have lot of soap services that we use to connect to and every time the first to the same service takes lot of time to initiate from integration and subsequent requests are fast cutting down by 60% of response time. Analyzed on the JAXB bindings…
0
votes
1 answer

Http outbound-gateway: is there a way to handle not HTTP errors and, in particular, "no connection" error?

My gateway can handle HTTP errors by custom error-handler (extends DefaultResponseErrorHandler). But if there is a connection failure error, the gateway is silent. Gateway schema:
slider
  • 421
  • 1
  • 4
  • 19
0
votes
1 answer

How to declare outputChannel and handle http response for HttpRequestExecutingMessageHandler in spring integration

Below is the configuration of HttpRequestExecutingMessageHandler @Bean @ServiceActivator(inputChannel = "httpRequestChannel") public HttpRequestExecutingMessageHandler httpRequestExecutingMessageHandler() { HttpRequestExecutingMessageHandler…
0
votes
1 answer

Spring Integration outbound gate way with dynamic URLs, HTTP methods and different response types

I have a little bit understanding about Spring Integration and so far i have used JMS and File outbound adapters and now i want to introduce the HTTP out bound adapter for Spring REST support. So far so good an i was able to call external REST api…
keth
  • 793
  • 2
  • 11
  • 36
0
votes
1 answer

Spring Integration HttpRequestExecutingMessageHandler issue on HEADERS

Checking the headers HttpRequestExecutingMessageHandler i notice a common header, accept-encoding, gzip which throws an Exception on response during the convertion phase, i.e. the message could not be converted throwing an error on response. Which…
0
votes
1 answer

Spring Integration : Connection Failure vs Error response code retryadvice()

i'm sending a request to a web service through Http.outboundGateway, and i 'm expecting to have a response with on of these three cases 1- Response success [Ok] 2- Connection Failure [ need to Retry] 3- response return with error code, ex. 400 …
Ramy Ahmed
  • 11
  • 1
0
votes
1 answer

Spring-Integration http:outbound-gateway with Hystrix

Is there a way I can wrap a http:outbound gateway REST API call with Hystrix Command. I saw some reference to using a custom request handler advice, not sure how I would go about doing it.
0
votes
1 answer

spring integration dynamic header

In Spring-integration Http request based on user logged in want to add dynamic header param.say for example if "A" user logged in & hitHttp request,now need to add dynamic 1 additional header,for others user,it should even the key too(i.e value as…
Doss
  • 31
  • 1
  • 14
-1
votes
1 answer

How to handle timeout error in HttpRequestExecutingMessageHandler?

I am using an HttpRequestExecutingMessageHandler for connecting with an external service. Here is my code: @ServiceActivator(inputChannel = "authTokenRequestJsonChannel") @Bean public HttpRequestExecutingMessageHandler…
Sanal M
  • 187
  • 4
  • 17
-1
votes
1 answer

POST payload over HTTPS connection in Spring

I am trying to connect to third party system over HTTPS connection and post parameters to receive a response. This is gonna be a POC I will be doing for which I am already started researching. I have already done a client-server TCP connection with…
-1
votes
1 answer

How do we design a spring integration system where from the first call response we will have to decide which gateway to follow

**Spring Integration:**Need to design a system where from the first call response it will be decided which gateway to go to in the spring integration. Was trying to implement first gateway as the common call then another gateway to segregate the…
1 2 3
9
10