1 of 1 people found this helpful
I think you can set these as options on the uri as well using the defaultOperationName and defaultOperationNamespace names.
Though mind that when you invoke the 2nd cxf bean in the same route, the previous operation names etc may take precedence over the default options (I cant remember), if so you may still have to use the <setHeader> or you can remove the headers instead
You can just do all your manipulations in a java bean, that way you have a neater code.
public class SOAPProcessor implements Processor
public void process(Exchange exchange)
then you can have:
<bean ref="soapProcessorBean" method="process"/>
That should look neater.