i have camel route accesses rest service. things work ok if rest response 200 ok. however, if response 404, rest service returns additional info in payload, cannot find way access. this part of debug log running it: [camel (rraacamelcontext) thread #2 - seda://from_rraa] info org.apache.cxf.interceptor.loggingininterceptor - inbound message ---------------------------- id: 2 response-code: 404 encoding: iso-8859-1 content-type: application/json headers: {accept=[application/json], breadcrumbid=[id-steves-macbook-pro-local-53701-1446241733043-1-7], content-type=[application/json], originalheader=[{name=verifyemployeerequest, version=1, scac=rraa, timesent=null, uuid=abcd-1234}], pin=[1234], reason=[init], server=[jetty(9.2.11.v20150529)], transfer-encoding=[chunked], user-agent=[apache cxf 3.1.2]} payload: { "employeeid": "bad-name", "message": "id not found" } my route set as: <route id="rraaiss"> <from uri="...
Comments
Post a Comment