views:

8

answers:

0

I want to encode a String with special characters in a SOAP-Fault. The client is complaining that in the SOAP-Faults, the encoding is not correct, in the usual SOAP Responses it is.

I can't find out how to specify encoding (with Spring Web Services) for SOAP-Faults. The only way I found is specifying the Locale for the Fault text with SoapBody.addServerOrReceiverFault(string, Locale). However, the special character text is meant to be in the details of the SOAP-Fault.

The other way would be to stuff all detail data into the text element, but that does not seem to make sense. Is there any way to set the encoding for the complete message (in Spring Web Services)?