Importing a Schema

Use

You can import a schema or a WSDL file into the rules composer DC. When you import a WSDL file that has a schema, the rules composer DC extracts the schema and allows you to write rules using that schema.

Procedure

  1. In the Project Explorer view, expand the rules composer DC node, and the src node.

  2. In the context menu of the wsdl node, choose Start of the navigation pathImport.End of the navigation path

  3. In the wizard that appears, expand the Web Services node and choose XSD or wsdl . Choose Next.

  4. In the screen that appears, choose Browse and specify the folder in your workspace where the schema file has to be placed and choose Remote Location / File System . Choose Next.

  5. In the screen that appears, choose Browse and choose the schema file in your system. Choose Finish.

Alternative Procedure

Copy and Paste the schema file

  1. Copy the schema file from your file system.

  2. In the Project Explorer view, expand the rules composer DC node, the SRC node and in the context menu of the wsdl node, choose Paste. .

Create a new schema file

  1. In the Project Explorer view, expand the rules composer DC node and the SRC node.

  2. In the context menu of the wsdl node, choose Start of the navigation pathNew Next navigation step File.End of the navigation path

  3. In the screen that appears, enter the name of schema file along with the file extension in the File Name filed. Choose Finish.

  4. Double-click the new schema file and enter the content.

Adding the XSD Elements to the Rules Composer DC

A schema file can contain multiple elements, you can add the required XSD elements to the rules composer DC.

  1. In the Project Explorer view, expand the rules composer DC node, the Rules Modeling node and double-click the Project Resources node.

  2. In the Project Resources editor, choose the Aliases tab.

  3. In the Aliases editor that appears, choose the Add button and in the menu that appears, choose XSD Element

  4. In the Add XSD Element dialog box that appears, expand the namespace node and choose the root element.

  5. Choose one of the two radio buttons that allow you specify how you want to generate XPath aliases:

    • Create all default XPath aliases for the selected element

    • Choose the Create XPaths button in the Aliases editor and create required XPaths

  6. Choose Click here to set alias generation preferences (Optional)

  7. In the screen that appears, you can select the checkbox in the Alias Generation section if you want to use namespace prefixes for aliases

  8. You can select the desired checkboxes in the Edit visibility setting for advanced aliases section. (Optional)

  9. You can enter the limit in the XPath Recursion Limit field. (Optional)

  10. Choose Finish and save the changes.