In cases where a given SOAP header element has a given value (for example, if the value of the header tag “response” is “0”), I don’t want Apache CXF to return a response at all.
How can I do this? It appears that CXF makes the assumption that all calls will receive a response.
(I know this seems strange in a web services context, but if your transport is JMS, it seems less strange).
I’ve been able to do this with an interceptor that aborts the interceptor chain.
I’ve tested this with an HTTP config (WebSphere returns an empty 200) and an ActiveMQ config (no response comes back to the response queue).
and your applicationContext.xml: