Hi all,
suppose I have a web service using an element "container" defined in the XSD as
follows:
<xsd:complexType name="container">
<xsd:sequence>
<xsd:element name="codeList" type="codeList"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="codeList">
<xsd:sequence>
<xsd:element name="code" type="code" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="code">
<xsd:sequence>
<xsd:attribute name="value" type="xsd:string"
use="required" />
</xsd:sequence>
</xsd:complexType>
I'd like to have java classes as follows:
public class Container {
// followed by the typical getter/setter...
private CodeList codeList;
}
public class CodeList extends ArrayList<Code> {
}
public class Code {
// followed by the typical getter/setter...
private String code;
}
Is that possible with any XFire binding ? I cannot find any documentation about
this on the web. Most bindings will define the CodeList as a non-generic class
with an attribute "code":
public class CodeList {
// followed by the typical getter/setter...
private ArrayList<Code> code;
}
Other XML binding tools will not even use a generic list, but an array:
public class CodeList {
// followed by the typical getter/setter...
private Code[] code;
}
Thanks
Holger
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email