Hi If you want to use response code 500, then you can set it as a header on the message.
message.setHeader("Response-Code", 500); On Fri, Sep 21, 2012 at 3:40 PM, tnk <jus...@gmail.com> wrote: > Hello, > > I have the following camel context: > > > > and my FatalProcesor just throws fault defined in wsdl: > > > When sending request to http://localhost:9080/hello endpoint, I get the soap > fault as I expect: > > > .. but http response response code is "200 OK". Why not 500 as it is > returned from cxf endpoint? > > > If I throw a RuntimeException from processor, I get back response with http > error code 500, but exception is not marshalled: > > > What I am doing wrong? How to return marshalled RuntimeException and how to > return other faults defined in wsdl with http response code 500? > Thanks in advance. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Help-with-nmr-cxf-endpoints-and-fault-handling-tp5719720.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen