WebSphere Studio development tools, such as WebSphere Development Studio Client (WDSC), provide an XML from SQL wizard that supports the creation of a DADX file from either SQL queries, DAD files, or both.
Document Access Definition Extension (DADX) is an XML technology for creating Web services that access relational databases. Combined with the DB2 Extenders, DADX supports mapping relational data in to complex XML documents and storing XML documents in the database.
A Document Access Definition (DAD) file is a user-specified file that provides control over the mapping of XML document elements to DB2 database columns for storage and retrieval. The XML to SQL wizard supports only Xcollection DAD. The types of mappings and operations supported by the XML from SQL wizard are as follows:
If you select SQL statement (SQL_stmt) mapping, you may need to customize the SQL_override information to specify the parameters you want to override from the SQL host variables. See the Web services Object Runtime Framework (WORF) documentation for more information.
Your SQL statement must exist in the workbench to complete the wizard. Follow these steps to generate a DADX file:
The DADX file is generated and opens in the XML editor where you can edit it, as necessary.