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

Reply via email to