CXF client only sends XML with UTF-8 encoding
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.