Java Reference
In-Depth Information
<xsd:element name="Books" type="tns:Books"/>
<xsd:complexType name="Books">
<xsd:sequence>
<xsd:element name="title" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
This schema code produces the following serialized message:
<Books>
<title>Hamlet</title>
<title>King Lear</title>
</Books>
Also, section 4.2.3 of the Basic Profile 1.2 indicates that you should not use the ArrayOfSo-
mething naming convention. This was suggested in section 4.2.3 of the Basic Profile 1.2. If
you are using a “Start from Java” approach, use a java.util.List . For example, public
List<Book> getBooks() .
Search WWH ::




Custom Search