Helo all,

I have a WSDL types defined like below

<xs:complexType name="ExtendedAddressType">
        <xs:complexContent>
                <xs:extension base="SimpleParsedAddressType">
                        <xs:sequence>
                                <xs:element name="Zip4" type="xs:string" 
minOccurs="0"/>
                                <xs:element name="PhoneNumber" type="
xs:string" minOccurs="0"/>
                                <xs:element name="ReportDate" type="
SimpleDateType" minOccurs="0"/>
                        </xs:sequence>
                </xs:extension>
        </xs:complexContent>
</xs:complexType>

<xs:complexType name="SimpleParsedAddressType">
        <xs:sequence>
                <xs:element name="StreetPreDirection" type="xs:string" 
minOccurs="0"/>
                <xs:element name="StreetNumber" type="xs:string" minOccurs
="0"/>
                <xs:element name="StreetName" type="xs:string" minOccurs="
0"/>
                <xs:element name="StreetType" type="xs:string" minOccurs="
0"/>
                <xs:element name="StreetPostDirection" type="xs:string" 
minOccurs="0"/>
                <xs:element name="UnitDesignator" type="UnitDesignatorType
" minOccurs="0"/>
                <xs:element name="UnitNumber" type="xs:string" minOccurs="
0"/>
                <xs:element name="City" type="xs:string" minOccurs="0"/>
                <xs:element name="State" type="xs:string" minOccurs="0"/>
                <xs:element name="PostalCode" type="xs:string" minOccurs="
0"/>
                <xs:element name="Country" type="xs:string" minOccurs="0
"/>
        </xs:sequence>
        <xs:attribute name="addressIdentifier" use="optional">
                <xs:simpleType>
                        <xs:restriction base="xs:token">
                                <xs:enumeration value="Current"/>
                                <xs:enumeration value="Former"/>
                        </xs:restriction>
                </xs:simpleType>
        </xs:attribute>
</xs:complexType>

Generated Constructors from the sources

public SimpleParsedAddressType(
           java.lang.String streetPreDirection,
           java.lang.String streetNumber,
           java.lang.String streetName,
           java.lang.String streetType,
           java.lang.String streetPostDirection,
           com.ws.UnitDesignatorType unitDesignator,
           java.lang.String unitNumber,
           java.lang.String city,
           java.lang.String state,
           java.lang.String postalCode,
           java.lang.String country,
           com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier) 
{
...
}

public ExtendedAddressType {
           com.ws.SimpleParsedAddressTypeAddressIdentifier 
addressIdentifier,
           java.lang.String streetPreDirection,
           java.lang.String streetNumber,
           java.lang.String streetName,
           java.lang.String streetType,
           java.lang.String streetPostDirection,
           com.ws.UnitDesignatorType unitDesignator,
           java.lang.String unitNumber,
           java.lang.String city,
           java.lang.String state,
           java.lang.String postalCode,
           java.lang.String country,
           java.lang.String zip4,
           java.lang.String phoneNumber,
           com.ws.SimpleDateType reportDate) 
{

super(
            addressIdentifier,
            streetPreDirection,
            streetNumber,
            streetName,
            streetType,
            streetPostDirection,
            unitDesignator,
            unitNumber,
            city,
            state,
            postalCode,
            country);

}

As we can see below , the order of the constructor argument 
"addressIdentifier" is different in the super class and subclass causing a 
compile time error as subclass's constructor calles "super". Really 
appreciate if someone can tell me how to fix this!

Regards, 
Aravind R Yarram
This message contains information from Equifax Inc. which may be confidential 
and privileged.  If you are not an intended recipient, please refrain from any 
disclosure, copying, distribution or use of this information and note that such 
actions are prohibited.  If you have received this transmission in error, 
please notify by e-mail [EMAIL PROTECTED]
--

Reply via email to