Hi, there,

I defined the following type in my WSDL.

    <xs:simpleType name="PropertyType">
      <xs:restriction base="xs:string">
        <xs:enumeration value="String"/>
        <xs:enumeration value="Integer"/>
        <xs:enumeration value="Long"/>
        <xs:enumeration value="Decimal"/>
      </xs:restriction>
    </xs:simpleType>

The used in in an element:

    <xs:element name="Item">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="ASIN" type="xs:string"/>   
          <xs:element name="Property" type="tns:Property" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType> 
    </xs:element>

The code generates without any problem. But Eclipse reports compilation error: The method convertToPropertyType(String) is undefined for the type ConverterUtil in the Property.java.

I displayed the line which uses the method in bold here:

                    if ("Type".equals(reader.getLocalName())) {
                        String content = reader.getElementText();
                        object.setType (org.apache.axis2.databinding.utils.ConverterUtil.convertToPropertyType(
                                content));
                        count++;
                    }

Is this a bug or am I missing anything?


regards,

-Hui

Reply via email to