Configuring the data service layer for the Project service module

In this lesson, you configure the data service layer for the Project service module, through XML to provide the necessary mappings.

About this task

The next steps for the customization of the new service module are:
  • Define four query templates:
    wc-query-Project-get.tpl
    A query template that maps each get request XPath statement and access profile to a SQL template query.
    wc-query-Project-update.tpl
    A query template file that maps each change request XPath statement to a SQL template query.
    wc-query-ProjectCollection-get.tpl
    A query template file that maps each get request XPath statement and access profile to a SQL template query.
    wc-query-ProjectCollection-update.tpl
    A query template file that maps each change request XPath statement to a SQL template query.
  • Define the logical to physical SDO mapping:
    • Defines the wc-business-object-mediator.xml file to relate logical nouns to physical data objects.
  • Update the Project service configuration (wc-component.xml) to:
    • Use the DSL value-mapping to map between internal database codes and external logical values.
Note: For more information, see Service module configuration.
Import the configuration files:

Procedure

  1. In the Enterprise Explorer view, expand WC > xml > config.
  2. Right-click com.mycompany.commerce.project. Click Import.
  3. Expand General select File System, then click Next.
  4. Browse to the temporary location where you extracted RecipeServices.zip.
  5. Browse to the config\com.mycompany.commerce.project folder; select the folder, then click Ok.
  6. Select all files; click Finish.
  7. Click Yes to All to overwrite any existing files.