[
https://issues.apache.org/jira/browse/CXF-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
s.ohtsuka updated CXF-2700:
---------------------------
Attachment: soap12_getlangcode.patch
Attached a patch.
> Invalid method is used to get the value of the xml:lang attribute in the
> SOAP1.2 Text Element
> ---------------------------------------------------------------------------------------------
>
> Key: CXF-2700
> URL: https://issues.apache.org/jira/browse/CXF-2700
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.2.6
> Reporter: s.ohtsuka
> Priority: Minor
> Attachments: soap12_getlangcode.patch
>
>
> The class
> org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor.Soap12FaultOutInterceptorInternal
> uses java.util.Locale#getDisplayLanguage() for determining the value of the
> xml:lang attribute of the SOAP Text Element. To get a language code, the
> proper method should be java.util.Locale#getLanguage().
> If this is fixed, you can set your default locale language to the xml:lang
> attribute by creating a non-empty resource
> 'org/apache/cxf/binding/soap/interceptor/Messages_<language code>.properties'
> in the classpath. Currently there is no way to set the value other than 'en'
> (default value).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.