I fixed your bug in 1.1 branch. It should be there with 1.1.1 release.
Thankx for reporting this.
On 1/5/07, Mendei Krisztian <[EMAIL PROTECTED]> wrote:
Hi,
I have a problem with generating Java code from WSDL. I have these to
complex types derived one from another with restriction:
<xsd:complexType name="itemBaseType">
<xsd:choice>
<xsd:element name="simpleStringX" type="xsd:string"
minOccurs="0" />
<xsd:element name="simpleIntegerX" type="xsd:int"
minOccurs="0" />
</xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="type" type="xsd:int" use="required"/>
</xsd:complexType>
<xsd:complexType name="itemBaseRestrictedType">
<xsd:complexContent>
<xsd:restriction base="itemBaseType" >
<xsd:choice >
<xsd:element name="simpleStringX" type="xsd:string"
minOccurs="0" maxOccurs="0" />
<xsd:element name="simpleIntegerX" type="xsd:int"
minOccurs="0" />
</xsd:choice>
<xsd:attribute name="name" type="xsd:string"
use="required"/>
<xsd:attribute name="type" type="xsd:int" use="required"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
I get error in the compiled java code, in the derived class-es code.
Kristian
--
Amila Suriarachchi,
WSO2 Inc.