Hi,
I'm using class Schema2Java to compile a XSD file with WSIF 2.0 to a java
source file.
I've the impression that Schema2Java doesn't understand nested all elements
in a complexType element.
I'm using the following XSD file :
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://interlocuteur.service.demo.nbp/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://interlocuteur.service.demo.nbp/">
<complexType name="EntrepriseTO">
<all>
<element name="codeSociete" nillable="true" type="string"/>
<element name="identifiant" nillable="true" type="string"/>
</all>
</complexType>
</schema>
I'm obtaining the following source file :
/*
*This class is automatically generated by schema to Java program.
*Only a subset of schema is handled and some of the schema information
*may be lost during translation
*/
package titi;
public class EntrepriseTO{
//instance variables
//constructors
public EntrepriseTO () {
}
public String toString() {
return ;
}
}
So, there are 2 properties missing : codeSociete and identifiant.
I think there's an error on method parseSchemaRoot, line 954, a missing
else if (elementType.equals("all")) { ...
Thanks for your reponse.
L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.
The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.