I'm trying to generate a class with the jaxb maven plugin from the following wsdl:
<xs:complexType name="ctpLeerling">
<xs:sequence>
<xs:element minOccurs="0" name="achternaam" type="xs:string"/>
<xs:element minOccurs="0" name="voorvoegsel" type="xs:string"/>
<xs:element minOccurs="0" name="voorletters-1" type="xs:string"/>
<xs:element minOccurs="0" name="roepnaam" type="xs:string"/>
<xs:element minOccurs="0" name="roepnaam" type="xs:string"/>
<xs:element name="geboortedatum" type="xs:date"/>
<xs:element minOccurs="0" name="geslacht" type="xs:string"/>
<xs:element name="jaargroep" type="tns:ctpVocabulaireGebondenVeld"/>
<xs:element minOccurs="0" name="emailadres" type="xs:string"/>
<xs:element minOccurs="0" name="fotourl" type="xs:string"/>
<xs:element minOccurs="0" name="groep">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="key" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="subgroepen">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="groep">
<xs:complexType>
<xs:sequence/>
<xs:attribute name="key" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" name="mutatiedatum" type="xs:dateTime"/>
</xs:sequence>
<xs:attribute name="key" type="xs:string" use="required"/>
It gives me a class that has the following fields:
protected List<JAXBElement<?>> content;
@XmlAttribute(name = "key", required = true)
protected String key;
How can I generate fields of the wsdl properties instead of a list with JAXBElements? Thanks in advance!
Edit: I'm sorry I forgot to mention that I cannot edit the wsdl file!