The eclipselink-dbws.xml file XSD is eclipselink-dbws_11_1_1.xsd and it is located in the <ECLIPSELINK_HOME>\xsds directory.

+

−

+

−

==eclipselink-dbws-schema.xsd==

+

−

The eclipselink-dbws-schema.xsd file is used only with EclipseLink database Web services (see [[Introduction to EclipseLink#Considering EclipseLink Database Web Service Architecture|Considering EclipseLink Database Web Service Architecture]]). A EclipseLink database Web service automatically generates this file from your database table metadata and uses it to derive element tag names and types.

+

−

+

−

An XML schema .xsd file is generated using the following two rules:

+

−

<ol>

+

−

<li>table name: translate any characters not supported by XML, then convert to lower case (to_lowercase), and then add suffix Type. This will result in a top-level complex element type in the .xsd file.

+

−

+

−

+

−

</li>

+

−

+

−

<li>column name: translate characters, and then convert to lower case (to_lowercase). This will result in an element tag name.

+

−

+

−

Note: This includes all columns, with BLOB columns being automatically mapped to xsd:base64Binary and, optionally, included in-line to the XML document, or handled as binary attachments (swaRef-style).

+

−

+

−

</li>

+

−

</ol>

+

−

This table shows metadata from a typical database, and [[#Example 9-4|Corresponding eclipselink-dbws-schema.xsd]] shows the corresponding eclipselink-dbws-schema.xsd file that the EclipseLink database Web service generates from it.

Specifies whether or not the operation returns binary data as a SOAP attachment. The following are valid values:

+

−

*true - the operation returns binary data as a SOAP attachment.

+

−

*false - the operation does not return binary data as a SOAP attachment.

+

−

|

+

−

false

+

−

|-

+

−

|

+

−

returnType

+

−

|Specifies a return type when the operation's return type cannot be deduced from database metadata. Valid values are any type that the eclipselink-dbws-schema.xsd file defines. For more information, see [[#eclipselink-dbws-schema.xsd]].