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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.