The SimpleSoapExceptionResolver is responsible for generating a part of the soap fault. This class defines the language of the soap fault default to English.
When retrieving the soap fault we use the org.springframework.ws.soap.SoapFault.getFaultStringOrReason() which is implemented by AxiomSoap12Fault which uses the Locale.getDefault to resolve the fault text.
I'm afraid we can't change this, as it would break backward compatibility with earlier releases.
That said, the locale used by the SimpleSoapExceptionResolver is a property, so you can change it to whatever you like. You could also subclass the SimpleSoapExceptionResolver, and override the getLocale() method to return Locale.getDefault() instead.
Richard opened SWS-872 and commented
The SimpleSoapExceptionResolver is responsible for generating a part of the soap fault. This class defines the language of the soap fault default to English.
When retrieving the soap fault we use the org.springframework.ws.soap.SoapFault.getFaultStringOrReason() which is implemented by AxiomSoap12Fault which uses the Locale.getDefault to resolve the fault text.
It would be nice if the default are the same
No further details from SWS-872
The text was updated successfully, but these errors were encountered: