Re: [Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-29 Thread Claus Ibsen
Hi People is very welcome to help with docs and other contributions http://camel.apache.org/contributing.html http://camel.apache.org/how-do-i-edit-the-website.html Just a note that the Camel DSL in Java and XML is 99% similar, so its actually easy when you know this. also in XML use the power of

Re: [Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-27 Thread Vaïsse-Lesteven Arthur
It works! Using : Maybe adding the corresponding documentation for XML synthax to the documentation could be a good idea. I read the doc many time without understanding that this part also apply for XML. Anyway, thank you! Arthur. -- View this message in context: http://camel.465427.n5.nab

Re: [Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-26 Thread Taariq Levack
Hi You need to set the type as SpeakerPojo.class I don't see a spring example here setting type but it should work the same as java so adjust accordingly. http://camel.apache.org/rest-dsl.html Taariq > On 26 Nov 2014, at 17:40, Vaïsse-Lesteven Arthur > wrote: > > Hi every one! > > I'm trying

[Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-26 Thread Vaïsse-Lesteven Arthur
Hi every one! I'm trying to create a RESTful API using the Rest DSL capacity of the release 2.14.0 of Camel. My problem currently come from the fact that the body of the Exchange is automatically casted into a java Map object. Here come a reduced example (I tried to make it as small as possible.