Thanks & Regards
Yagyesh Kumar Mishra
Mobile: 8800447897
" Ignorance is death, knowledge is life"
By calling a service over http , the response which i am getting is of
format:
[{"a":1,"b":2,"c":3},{"a":4,"b":5,"c":6}]
So to map this i have
public void configure() {
from("direct:ab")
.setHeader(HTTP_URI, simple(baseUrl +
"/${header.aa}"))
Can i get more insight the way this problem is solved ?
I have posted a similar question in camel forum
(http://camel.465427.n5.nabble.com/DataFormat-Versus-TypeConverters-td5747307.html#a5747369)
--
View this message in context:
http://camel.465427.n5.nabble.com/JSON-Jackson-return-list-rather
My bad the above code work. Donot know how it was not coming previously.
--
View this message in context:
http://camel.465427.n5.nabble.com/Setting-Header-Value-in-java-tp5747179p5747308.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi All,
I am using typeconverter to transfrom my data into JsonArray.
Route:
public void configure() {
from("direct:ab")
.setHeader(HTTP_URI, simple(baseUrl +
"/${header.aa}"))
.to("http://dummyhost";).
}
templa
Hi All,
I have code in groovy to create a ProducerTemplate and pass the header
value .
Below is the code snippet:
template.requestBodyAndHeader("direct:aa",null,"ab",start,JSONArray);
ab is header string'
start is the header value
So while creating the route
public void con
I was able to solve the issue .There were some problem in my TypeConverter
1)it was not public
2)In typeConverter configuration there were some blank space
3)The InputStream data was not converted to proper form so
typeConversionException
--
View this message in context:
http://camel.465427.n5
C Member | Apache Camel committer
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
>
> On Tue, Feb 11, 2014 at 5:35 PM, yagyesh <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=5747146&i=0>>
> wrot
Hi All,
I am using camel to call a restful webservice.
I am calling the requestBodyandheader method of producerTemplate and
expecting a response of type JSONarray
template.requestBodyAndHeader("direct:aa",null,"ab",header,JSONArray.class);
A converter is also defined to manipulate the response.