Hi, I guess you are still on the exchange and set there the exchange header with name "operationName" instead of adding this header to you're SOAP message.
What I've done in the past to solve this issue is the following: (1) Write a SoapHeaderProcessor (2) Receive the SoapMessage from your exchange (3) Modify the header the way you want to (4) Include the SoapHeaderProcessor into your camel route I'm not quite sure if that's the only way of doing it, but this way it works. Please let me know of you have any further questions. - Christoph On Jan 23, 2013, at 5:11 PM, Gabriel Wetzler wrote: > Hi, > I'am facing a problem adding an custom soap-header to an web-service request. > My route is setup in pojo-mode and looks like this: > <route id="CustomerServiceUpdateCustomerTest"> > <camel:from uri="direct:iccsUpdateCustomerRequest"/> > <setHeader headerName=“operationName“> > <constant>abc123</constant> > </setHeader> > <to uri="cxf:bean:ICCSCustomerService"/> > <camel:to uri="stream:out"/> > </route> > I whant to invoke the route by sending an request – object to the direct – > component. But I need to add an soap – Header to the soap – envelope like > this one: > <ns2:Header> > <simpleAuth xmlns="http://xsoap.iccs.de/v1" password="xyz" > username="abc"/> > </ns2:Header> > I couldn't figure out the solution for this problem. Do you have any > suggestions for me? > thanks
