Apache Camel is an open source Java framework. Questions involving one of its components - camel-http - may have this tag.
Questions tagged [camel-http]
68 questions
1
vote
1 answer
Camel Http4 using basic auth and proxy auth
I've been trying to use Apache Camel's Http4 component to connect to a HTTPS URL that needs Basic authentication. The connection needs to be done through an authenticated HTTP proxy.
So, according to the docs, I configure the Camel endpoint like…

Xavi López
- 27,550
- 11
- 97
- 161
0
votes
0 answers
Unable to consume Json events to http endpoint using camel-http-sink-kafka-connector
We are trying to send Json events from Kafka topic to an http endpoint using camel-http-sink-kafka-connector, getting an InvalidPayloadException whenever an event is produced to Kafka topic.
Below steps were followed for the setup:
Built an uber jar…

Harpreet Singh
- 9
- 1
0
votes
1 answer
Unable to convert exchange body to Custom Object
I am trying to covert jwt token to Object to get access token using spring DSL
…

ravthiru
- 8,878
- 2
- 43
- 52
0
votes
0 answers
How to prevent selected Camel headers being mapped onto HTTP headers
I want to enrich a Camel exchange with content fetched from some external web service. However, when calling that service, I do not want all the headers on my incoming exchange to be mapped onto HTTP headers, just some selected ones should be…

Ulrich Schuster
- 1,670
- 15
- 24
0
votes
1 answer
Why is my Camel http response body empty despite stream caching?
I have a JPA consumer route which makes a POST and enriches the original Exchange:
@Component
public class GetDocumentPlaceholderRoute extends LateDeadLetterRoute {
private static final AggregationStrategy finalizeImageProcess = (request,…

FaraBara
- 115
- 7
0
votes
1 answer
Apache Camel HTTP4 component ignores Date: Header
I'm using Apache Camel's HTTP 4 component for performing a HTTP-PUT request. Before sending the request, I set custom and application dependent headers. One of the header key is 'Date'.
But unfortunately, Camel-HTTP4 ignores the Date-Header and does…

ian_eve
- 97
- 2
- 8
0
votes
0 answers
How to configure TLSv1.2 on Camel's http component to call an external service?
Below is the configured route I am using, to call an external service.
services_routes.xml

tusharRawat
- 719
- 10
- 24
0
votes
0 answers
Problem consuming api rest with camel-http4
I'm trying to consume the following url:
.to("https4://www.example.com/demo?execute&bridgeEndpoint=true")
but apparently the request comes out like this:
.to("https4://www.example.com/demo?execute=&bridgeEndpoint=true")
Which makes me not give…

Rdev
- 1
- 1
0
votes
1 answer
Apache Camel: Unit testing for file and http components
I am fairly new to Camel & just managed to implement a use case as below with 2 routes which is using file & http components. Looking for some leads on writing junits for the same. Have tried some sample test case below based on the inputs that i…

Arjun
- 21
- 3
0
votes
0 answers
Apache Camel: GET service call using toD() results in infinite loop
I want to read file(s) from a location, extract the fileName & make a rest call (GET) with the fileName as a request parameter. The file name is required to be passed dynamically as each file will be unique. I used toD() after going through the…

Arjun
- 21
- 3
0
votes
2 answers
How to set path variables in camel-http4
I have a camel-spring-boot project where I load the destination url from a yml file with Spring's @ConfigurationProperties. As my destination is a HTTP url I am using camel-http4 component.
Now my URL is…

Abhishek Chatterjee
- 1,962
- 2
- 23
- 31
0
votes
0 answers
Best way to unmashal an object to a POJO in Apache Camel
I am trying to retrieve an object out of the process method in Camel response.
However once I got an empty response in the following code:
from("timer://simpleTimer?repeatCount=1").routeId("myroute")
.setHeader("client_id", constant("abc"))
…

Rachit
- 403
- 10
- 32
0
votes
0 answers
Log messages not printed in Camel route
I made an instance of Camel Context and added the routes in the context as follows:
camelContext.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
System.out.println("in add route method");
…

Rachit
- 403
- 10
- 32
0
votes
1 answer
Produce messages to IBM MQ using REST API. Apache Camel
I have to send messages to IBM MQ by hitting a rest service. Below is the code I came up with, using Camel XML DSL.

vineeth kumar
- 175
- 1
- 12
0
votes
0 answers
APACHE CAMEL REST DSL API behave differently from relative CURL operation
i'm stuck in something that is going me crazy.
I'm creating an application which exposes some APIs and map each of these API to some external API, so basically my app is a passtrough. The operation is a post which actually works, but here is where…

Zhaled Asufian
- 87
- 1
- 1
- 9