Hi, I get a compile error, "cannot be resolved" for code generated with Axis2 wsdl2java when the schema has an extension base with a choice. Here's the example:
<xsd:complexType name="ArrangementCmDetailType"> <xsd:complexContent> <xsd:extension base="xsd_1:ArrangementType"> <xsd:choice> <xsd:element name="CmDpDtl" type="xsd_1:CmDpDtl"/> <xsd:element name="CmLnDtl" type="xsd_1:CmLnDtl"/> </xsd:choice> </xsd:extension> </xsd:complexContent> </xsd:complexType> When the code is generated for ArrangementCmDetailType it generates boolean variables for each element in the "choice" as well as references to boolean variables in the parent class, ArrangementType, for each of its element. The variables are suffixed with Tracker. However, the class ArrangementType does not have the Tracker variables defined. <xsd:complexType name="ArrangementType"> <xsd:sequence> <xsd:element name="ArKey" type="xsd_1:ArKey"/> <xsd:element name="ArTyp" type="xsd_1:ArTyp"/> <xsd:element name="ArProdDef" type="xsd_1:ArrangementProductDefinition"/> <xsd:element name="ArStat" type="xsd_1:ArStat"/> <xsd:element name="ArStrtDte" type="xsd:date"/> <xsd:element name="ArEndDte" type="xsd:date" minOccurs="0"/> <xsd:element name="ArEltrnAccElgblInd" type="xsd:boolean" minOccurs="0"/> </xsd:sequence> </xsd:complexType> I noticed that the ArrangementType only had the Tracker variables for the optional elements (minOccurs="0"), i.e. ArEndDte and ArEltrnAccElgblInd. I am getting the unresolved variables error in ArrangementCmDetailType for all the other elements: localArKeyTracker, localArTypTracker, localArProdDefTracker, localArStatTracker and localArStrtDteTracker. I am using Axis2-1.4.1 but also found the issue with wsdl2java in Axis2-1.6.1. Any help is appreciated. Thanks, Krishna -- View this message in context: http://old.nabble.com/Axis2-wsdl2java---cannot-be-resolved-error-using-choice-in-extension-base-for-a-complexcontent-tp33294695p33294695.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org