Hello Dears,

I have an issue with soap-actions that contains accented charaters. I'm
sure that this is not something new and it is possible that I'm missing
something. So, please help.

My case is as follows:
* I have received a WSDL of a third party system
* I have used wsdl2java maven plugin to generate classes
* I have setted up a client and a server using Spring method
* When I try to consume a service, the server reject my request with: 'The
given SOAPAction does not match an operation'
* The logs shows that the SOAPAction header:
** at the client side contains the corrcet value which contain an accented
character (the character 'é')
** at the server side, it contains a wrong value (the 'é' is replace by two
other charaters)

It looks like that CXF:
* at the client side, it hase encoded the the header value using UTF-8
* while at the the server side, it has decoded the header value using
ISO-8859-1

I have asked this question on SO and I have got a reply saying that as per
HTTP Specs, headers should be in ISO-8859-1.

My question here is: how I can ask CXF to encode headers, at the client
side, using ISO-8859-1 instead of UTF-8?

My config is:
* OS: Fedora 19
* JDK: Java(TM) SE Runtime Environment (build 1.6.0_33-b03) | Java
HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
* CXF: 2.7.11

I have put all the detail of thsi case on SO. Please see '
http://stackoverflow.com/questions/24305749/cxf-jaxws-endpoint-fail-with-the-given-soapaction-does-not-match-an-operation
'.

Warm regards.

Younes Ouadi

Reply via email to