Override Content-Type using cxf endpoint

Solution Verified - Updated -

Issue

I have created a spring camel route where I use a camel cxf producer endpoint to invoke on a backend SOAP service. By default when I call it sends request header Content-Type=application/soap+xml. I want to override this default behaviour by sending Content-Type=text/xml instead.

Environment

  • JBoss Fuse
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content