Re: Marshalling to JSON in Camel REST when HTTP Response-Code is not 200 Ok

2015-05-28 Thread Brian Drysdale
Hi Claus, Thanks, that's resolved the problem perfectly. Much appreciated. Brian On 27 May 2015 at 18:02, Claus Ibsen wrote: > Hi > > See the option skipBindingOnErrorCode > http://camel.apache.org/rest-dsl > > On Wed, May 27, 2015 at 6:33 PM, Brian Drysdale > wrote: > > Hello, > > > > I'm ho

Re: Marshalling to JSON in Camel REST when HTTP Response-Code is not 200 Ok

2015-05-27 Thread Claus Ibsen
Hi See the option skipBindingOnErrorCode http://camel.apache.org/rest-dsl On Wed, May 27, 2015 at 6:33 PM, Brian Drysdale wrote: > Hello, > > I'm hoping someone can help me with something. > > I'm evaluating the suitability of Camel 2.15 for building a rest API with > JSON and have run into a pr

Marshalling to JSON in Camel REST when HTTP Response-Code is not 200 Ok

2015-05-27 Thread Brian Drysdale
Hello, I'm hoping someone can help me with something. I'm evaluating the suitability of Camel 2.15 for building a rest API with JSON and have run into a problem when marshalling POJOs when the HTTP response code is not 200 Ok. I've opted to use the Camel Spark Rest component, and have modified t