Show TOC

Procedure documentationImporting a Schema Locate this document in the navigation structure

 

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   Import.  

  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   New   File.  

  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.

Note Note

You should be able to view all the added schema files under the WSDL node

End of the note.
Adding XSD Elements

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

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

  2. In the Project Aliases Editor that appears, choose the XSD Aliases tab and choose the Add XSD Elements button.

  3. In the Add XSD Element dialog box that appears, expand the Namespace node and choose the Global Element.

    Note Note

    If you are not able to view the XSD elements, you need to build project.

    • In the SAP NetWeaver Developer Studio, choose   Project   Build Automatically.  

      Or

      In the Project Explorer view, in the context menu of the rules composer DC node, choose   Build Project.  

    End of the note.
  4. Choose Use namespace prefixes for generated aliases. (Optional)

    Note Note

    Namespace prefixes are used to distinguish elements with same name. For example, if there are two 'purchaseorder' elements with same name, you can distinguish them using prefixes.

    End of the note.
  5. Enter the limit in the XPath Recursion Limit field. (Optional)

  6. Choose Finish and save the changes.