We're currently having issues with the way that wsdl2java handles simple types that are not enumerations.
Currently, a complex type defined as this:
<xsd:complexType name="RootType">
<xsd:sequence>
<xsd:element name="stringElem" type="xsd:string"/>
<xsd:element name="enumElem" type="foo:enumType"/>
<xsd:element name="simpleElem" type="foo:fooSimpleType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="fooSimpleType">
<restriction base="xsd:string"/>
</xsd:simpleType>
is translated into this:
public class RootType implements java.io.Serializable {
private FooSimpleType simpleElem;
public RootType() {
}
public FooSimpleType getSimpleElem() {
return simpleElem;
}
public void setSimpleElem(FooSimpleType simpleElem) {
this.simpleElem = simpleElem;
}
}
However, FooSimpleType is not generated, so the generated code does not compile.
Is this a known issue, and if so, what is the planned fix? Would it be to replace all references to the simple
type with references to the base type (or the first base type reached that maps to a java type when traversing the
base types?) or to generate the class that is referenced (e.g. FooSimpleType)?
Thanks,
David Altenburg
[EMAIL PROTECTED]