It looks to me like the checked in java types were generated from the checked in version of wsrp_v1_types.xsd, which has a lang attribute of type String.
Holger Brozio wrote:
> i have a question about the bug entry WSRP4J-21.
> >Property, ResourceValue, and LocalizedString need to specify
> 'xml:lang' for the 'lang' attribute field of the Elements
> The problem seems to be a bug in Axis, where the "xml:lang" attribute in
> the file "wsrp_v1_types.xsd" causes a wrong
> generated ResourceValue.java, LocalizedString.java and Property.java
> file. The "xml:lang" attribute is not honnored correctly.
> Therefore the CVS content of the WSRP4J project contains a modified
> "wsrp_v1_types.xsd" file, where the "xml:lang" attribute
> is replaced by a simple "lang" attribute.
> The bug is closed and has a comment entry from "Richard Jacob" which
> says, that this problem doesn't occur anymore
> with the new Axis version 1.2. But i am using Axis 1.2.1 and the
> original "wsrp_v1_types.xsd" file from OASIS with
> "xml:lang" and the three Java files mentioned above are still not
> correctly generated. Also the CVS repository of WSRP4J has
> an old version of ResourceValue.java checked in, where the "lang"
> attribute is used and wich is generated with Axis 1.2RC3.
> Is the bug really fixed with Axis 1.2 and above? Why is the original
> "wsrp_v1_types.xsd" from OASIS not used, if this is the case?
> Have you special hints for generating the problematic files wiht Axis
> 1.2, so that the desired code e.g.
> org.apache.axis.description.AttributeDesc attrField = new
> attrField.setXmlName(new javax.xml.namespace.QName("", "xml:lang"));
> can be received.
> Thanks in advance.