DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17598>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17598

WSDL2Java generates wrong code for normalizedString

           Summary: WSDL2Java generates wrong code for normalizedString
           Product: Axis
           Version: current (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: WSDL processing
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


A schema definition as the following:
<xsd:simpleType name="anrede">
                <xsd:restriction base="xsd:normalizedString">
                        <xsd:enumeration value="Herr"/>
                        <xsd:enumeration value="Frau"/>
                        <xsd:enumeration value="Fraeulein"/>
                        <xsd:enumeration value="Firma"/>
                        <xsd:enumeration value="Eheleute"/>
                </xsd:restriction>
        </xsd:simpleType>

generates the following code which does NOT compile:
...
public static final org.apache.axis.types.NormalizedString _Herr = "Herr";
    public static final org.apache.axis.types.NormalizedString _Frau = "Frau";
    public static final org.apache.axis.types.NormalizedString _Fraeulein 
= "Fraeulein";
...

Reply via email to