CXF client only sends XML with UTF-8 encoding

Solution Unverified - Updated -

Issue

  • I have a CXF SOAP client, but the endpoint can only understand ISO-8859-1 encoded messages, and I can't figure out how to configure my client to do that. It seems CXF will only send messages using UTF-8 encoding. How can I change that?

  • The XML headers from the soap request, show the below encoding as UTF-8:

    <?xml version="1.0" encoding="UTF-8"?> 
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.1+
    • 6.x
  • JBossWS-CXF

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.