Hi,

sorry, maybe the situation wasn't clear enough. I have a simple jetty http
endpoint, which accepts requests and simply forwards it to nmr endpoint.



And then, there is a cxfEndpoint (configuration in first post), listening to
nmr:fatal:endpoint and simple camel route:


fatalProcessor just throws Fault defined in wsdl. I can see in logs, that
soap fault is returned from CXF endpoint:


Then this fault is returned to webservice caller (in "consumerRoute"), but
http response code is 200 (although Response-Code 500 returned from nmr
endpoint). The strange thing, I can't do anything after the line "<camel:to
uri="nmr:fatal:endpoint" />", route is not executed further, camel treats
soap fault as exception (so why http 200 returned?)
The other case, then I throw RuntimeException (or call WS with invalid xml)
in fatalProcessor bean. cxfEndpoint returns soapfault as well, but the
result of "consumerRoute" to web service consumer is http response-code 500
and exception stacktrace, although cxfEndpoint returns marshalled soap
fault:



What I am doing wrongs? Looks like soap faults are threated differently in
camel...



--
View this message in context: 
http://camel.465427.n5.nabble.com/Help-with-nmr-cxf-endpoints-and-fault-handling-tp5719720p5719859.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to