Re: Getting http status code from cxfrs in onException handler

2013-12-03 Thread Preben.Asmussen
Thanks Willem Of course it was quite simple in the end. Just do org.apache.camel.component.cxf.CxfOperationException ${exception.statusCode} == 404 true I was just focusing on getting the http status code from the header, when I just could hav

Re: Getting http status code from cxfrs in onException handler

2013-12-01 Thread Willem Jiang
Hi, I just checked the code of CxfRsProducer, if you set the  throwExceptionOnFailure to be true, you can only get the Http status code from the exception. If you set the throwExceptionOnFailure option to be false, you can find the Http status code from the out message header with the key of “C