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
0
votes
0 answers
org.apache.camel.InvalidPayloadException: No body available of type: java.io.InputStream but has value: throw while unmarshalling the bindy bean
I'm trying to make a api call and get payload and enrich the content after unmarshalling the bean object. I can see that unmarshalling the bindy object has been happened but, it is throwing the below exception after making api call.
Message…

TechGeek
- 480
- 1
- 8
- 22
0
votes
2 answers
0
votes
1 answer
How to make GET api call based on content of body using apache camel
My requirement is to make GET api call based on the content of the body I spitted from flat file.And aggregate the api response with original body and generate xml.
Input:
0150519821|0000000078|0000004892|US| . …

TechGeek
- 480
- 1
- 8
- 22
0
votes
2 answers
Is HttpOperationFailedException available with apache's http4?
I'm using apache camel http4 for http server.
JBoss Fuse Karaf container 6.3.0.redhat-310
has bundled camel-core 2.17 - (2.17.0.redhat-630310)
I'm trying to use exception class
org.apache.camel.component.http.HttpOperationFailedException
to catch…

GLMills
- 558
- 1
- 12
- 37
0
votes
0 answers
Apache Camel restConfiguration, choice and jsonpath
Camel endpoint with choice and jsonpath works correctly when tried as an independent endpoint but when I introduce rest endpoint in route configuration choice stops filtering for the content-based routing of messages send from postman. Is there…

Vikrant
- 63
- 1
- 1
- 8
0
votes
0 answers
Camel - HTTP request content based redirecting
I 'm trying to use camel for redirecting an http request based on the contents of the request body.
I 've created an endpoint for receiving http requests and I 'm able to successfully redirect my request to a different URL, using the following…

Amal
- 75
- 1
- 9
0
votes
1 answer
How to get the message back to the queue if the http request failed?
I use apache camel with activemq and camel-http, after the message is sent to the endpoint and the request fails, I still lose the message from the queue.
It is necessary that the message is not lost if the request failed. How can I do…

D. Batmanov
- 39
- 1
- 8
0
votes
1 answer
How to create routes configuration itself dynamically
In one of my use case, i have all my route information in a json file and i want to read the file and create the routes accordingly.
for example,
if i have declared route like this in my json config file
{
"config": [
{
"routeSrcSystem":…

James Mark
- 319
- 4
- 15
0
votes
1 answer
Configure http4 certificate in application.yml
I'm trying to move my http4 certificate configuration away from RouteBuilder class and to application.yml file. My code is exactly like the Java example on this page under the "Setting up SSL for HTTP Client - Programmatic Configuration of the…

Dule Cux
- 1
0
votes
1 answer
Camel rest - Allow specific ip to access send request
I have below camel rest route. Currently all the host is able to access this route using the URL exposed.
Is there anyway I can restrict remote host to access based on the IP configured.
I want to allow certain IP address to access this URL. Is…

Jigar Naik
- 1,946
- 5
- 29
- 60
0
votes
1 answer
HttpConnectionManagerParams not working for HTTPS URL
We use Apache Camel's camel-http component to integrate with HTTP endpoints, HttpConnectionManagerParams is used to configure defaultconnectionsPerHost and maxTotalConnections.

Samy
- 2,387
- 2
- 17
- 31
0
votes
1 answer
Camel Java DSL: Update the next polling request param using the value from the response
I am new to Apache camel, this is what I am trying to figure out. In a sample code below, I am trying to use the property - "value" in the request param in next polling request.
String valueFromTheResponse= ""
m.addRouteBuilder(new RouteBuilder()…

fenrigne123
- 593
- 1
- 4
- 9
0
votes
1 answer
How to set HTTP Method dynamically from blueprint(Camel-http)
I use camel-apache companent camel-http. I'm trying to set the http method from my custom header. I use blueprint
override process:
exchange.getOut().setHeader("custom_http_method", "GET");
blueprint route:

D. Batmanov
- 39
- 1
- 8
0
votes
1 answer
camel HTTP4 JBoss : unable to find valid certification path to requested target
I request a access token from a UAA service. recieve the token. then use the token to upload a file to an AWS environment. now it works with one environment and doesn't work with another. the only major difference can find is that the one that…

GLMills
- 558
- 1
- 12
- 37
0
votes
0 answers
CAMEL HTTP4 post request was rejected because no multipart boundary was found
I'm using Camel-http4 because I simply need a producer, not expose a webservice. I simply need to push files up to an HTTP server, so this is a client implementation. the problem I am facing is the attempt to post returns an error.…

GLMills
- 558
- 1
- 12
- 37