axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Davies (JIRA)" <>
Subject [jira] Created: (AXIS-2596) Complex type extends Simple type generated class does not compile
Date Fri, 08 Dec 2006 22:57:20 GMT
Complex type extends Simple type generated class does not compile

                 Key: AXIS-2596
             Project: Apache Axis
          Issue Type: Bug
          Components: WSDL processing
    Affects Versions: 1.4
         Environment: Windows
            Reporter: Daniel Davies

This schema excerpt is from an OTA schema:

<xs:complexType name="CountryNameType">
		<xs:documentation xml:lang="en">
			The name or code of a country (e.g. as used in an address or to specify citizenship of
a traveller).			</xs:documentation>
		<xs:extension base="StringLength0to64">
			<xs:attribute name="Code" type="ISO3166" use="optional">
					<xs:documentation xml:lang="en">ISO 3166 code for a country.</xs:documentation>

<xs:simpleType name="StringLength0to64">
		<xs:documentation xml:lang="en">Used for Character Strings, length 0 to 64</xs:documentation>
	<xs:restriction base="xs:string">
		<xs:minLength value="0"/>
		<xs:maxLength value="64"/>

wsdl2java generates this:

public class CountryNameType  implements, org.apache.axis.encoding.SimpleType
    private java.lang.String code;  // attribute

    public CountryNameType() {

    // Simple Types must have a String constructor
    public CountryNameType(java.lang.String _value) {
//Rest of class

I am not sure if a StringLength0to64 class that should have been created and CountryNameType
should have extended it or the call to super with a parameter should not be there.  Either
way, it is not generating code that will compile.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message