* @see getFaultString()
*/
public void setFaultString(String faultString, Locale locale) throws SOAPException {
if (this.fault.getReason() != null) {
SOAPFaultReason reason = this.fault.getReason();
if (this.element.getOMFactory() instanceof SOAP11Factory) {
reason.setText(faultString);
} else if (this.element.getOMFactory() instanceof SOAP12Factory) {
addFaultReasonText(faultString, locale);
}
} else {
if (this.element.getOMFactory() instanceof SOAP11Factory) {
SOAPFaultReason reason = new SOAP11FaultReasonImpl(this.fault,
(SOAPFactory)this.element
.getOMFactory());
reason.setText(faultString);
} else if (this.element.getOMFactory() instanceof SOAP12Factory) {
addFaultReasonText(faultString, locale);
}
}
this.faultReasonLocale = locale;