Questions tagged [spring-integration-http]
136 questions
1
vote
1 answer
how to write unit test for spring integration xml code
Im new to spring integration,I want to write unit test cases for my application. I'm working on an application where integration interface will be called by other system with XML input we transform the input XML using XSLT and will make a call to…

Sid
- 255
- 2
- 12
1
vote
1 answer
Spring MVC Test - multipart POST json originalFilename is required
I use spring-boot 2.0.3.RELEASE with junit5. I have just tried to test multipart request with mockMvc.
MockMultipartFile file = new MockMultipartFile("file", "contract.pdf", MediaType.APPLICATION_PDF_VALUE, "<

Bully
- 139
- 1
- 14
1
vote
1 answer
Spring Integration dsl - HTTP inbound gateway consume multipart/form-data
I would like to consume multipart/form-data through http inboud gateway. First part is object as json which I want to serialize it to object by content-type: application/json. And second part is pdf file. Is it possible to simply serialize? Do I…

Bully
- 139
- 1
- 14
1
vote
1 answer
Spring Integration Java DSL HTTP no reply received within timeout error
I am using Spring integration 5.0.6. I have gone though it's document and created following code which listens on a HTTP endpoint and publish to a kafka topic.
Everything is working fine and I am receiving message at topic also. But at HTTP client…

kleash
- 1,211
- 1
- 12
- 31
1
vote
1 answer
Spring Integration Outbound Gate way for Synchronous REST Calls
Previously i was able to develop a little framework using the Spring Integration Where developers can specify the URLs, HTTP methods and Request Body and invoke any external REST API.
This is the configuration for my Spring Integration

keth
- 793
- 2
- 11
- 36
1
vote
1 answer
Spring Integration HTTP messageDispatcher for JSON Payload
I am trying to instruct DispatcherServlet to delegate to MessageDispatcher using WebServiceMessageReceiverHandlerAdapter instead of delegating to Controllers.
But the request payload is of JSON . Do we have default messageDispatcher for JSON similar…

Sowmya Poovannan
- 31
- 1
- 4
1
vote
1 answer
Set Response Http:InboundGateway StatusCode in Spring Integration Java DSL
The following bit of config accepts a HTTP POST with a JSON request body of a User instance to create, but I'm danged if I can get it to return a 201 Created. Any ideas?
@Bean
public IntegrationFlow flow(UserService userService) {
return…

DeejUK
- 12,891
- 19
- 89
- 169
0
votes
1 answer
Spring Integration - passing json parameters to HttpRequestExecutingMessageHandler
I want to pass json parameters in the URL of rest API with SI - HttpRequestExecutingMessageHandler.
This is the Controller ---
@RestController
@RequestMapping("/api")
public class NotificationController {
@Autowired
NotificationGateway…

Sam
- 43
- 5
0
votes
1 answer
Request params on http outbound gateway
I am calling int-http:outbound-gateway for external service call which looks like this,
http://workflow-test-svc-stg.com/workflow?testId=1234&userId=ABC
But I don't have int-http:inbound-gateway to set request param as

KeepItSimple
- 23
- 4
0
votes
1 answer
Use Spring Integration as a proxy to serve a web page
I'm working Spring Integration application that works as a proxy to a bunch of third-party REST services.
@Bean
public IntegrationFlow proxyFlow() {
var parser = new SpelExpressionParser();
return IntegrationFlows
…

Marc Tarin
- 3,109
- 17
- 49
0
votes
1 answer
How to configure polling into spring boot application?
I have configured polling into my spring boot application but, i am getting below error.
java.lang.IllegalAccessError: tried to access method org.springframework.integration.context.IntegrationProperties.()V from class…

Dharmin Patel
- 11
- 3
0
votes
1 answer
Spring integration: http inbound gateway log original HTTP request
How can I see the original HTTP incoming request when using http inbound gateway?
I want to see the original HTTP headers before the mapping performed by mappedRequestHeaders(String pattern...).
Thanks!

italktothewind
- 1,950
- 2
- 28
- 55
0
votes
1 answer
Spring integration: transform http message to soap message
I'm writing an application to support a protocol that in the same HTTP endpoint mixes SOAP messages (a POST with SOAP XML) with empty messages (a POST without body), which are not empty SOAP messages.
I tried to receive the empty messages using…

Victoria Antolucci
- 38
- 3
0
votes
1 answer
Spring Integration: replying messages with gateways
I have this Spring Integration code that receives a SOAP message and then replies it.
This is the configuration:
@Bean
public MessageChannel wsGatewayInboundChannel() {
return MessageChannels.direct(GATEWAY_INBOUND_CHANNEL_NAME).get();
}
…

Pepi
- 3
- 2
0
votes
0 answers
Spring Integration DSL access error body in error handling flow
I’m not able to access the error body in my spring integration error handling flow
Message received from external system
Status: 400 Bad Request
Response body:
{
“title”: “record already exists”, “errorCode”: -1
}
Tried to access the response body…

sophopile
- 11
- 2