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, 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