Title: WSDL2Java and simple types .

Hi all ,
I'm  encountering  a  problem when generating code with simple types using  WSDL2Java.

For example,  our customer has a simple type called cableIdType defined in the schema

<xsd:simpleType name="cableIdType">
            <xsd:restriction>
              <xsd:simpleType>
                <xsd:restriction base="xsd:decimal">
                  <xsd:fractionDigits value="0"/>
                  <xsd:minInclusive value="1"/>
                  <xsd:whiteSpace value="collapse"/>
                </xsd:restriction>
              </xsd:simpleType>
              <xsd:maxExclusive value="300"/>
            </xsd:restriction>
</xsd:simpleType>

WSDL2Java   creates  a class called LineIdType. But this class has no setter or getters for a decimal values.
It simply implements java.io.Serializable ,  org.apache.axis.encoding.SimpleType and creates the
following methods

boolean equals(java.lang.Object obj)
int hashCode()
getTypeDesc()
getSerializer()
getDeserializer()

I've tried the -a flag, with no change .
Any ideas ?
Thanks
Jimmy

Reply via email to