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.
In the Project Explorer view, expand the rules composer DC node, and the src node.
In the context menu of the WSDL node, choose
In the wizard that appears, expand the Web Services node and choose XSD or WSDL. Choose Next.
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.
In the screen that appears, choose Browse and choose the schema file in your system. Choose Finish.
Copy and Paste the schema file
Copy the schema file from your file system.
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
In the Project Explorer view, expand the rules composer DC node and the SRC node.
In the context menu of the WSDL node, choose
In the screen that appears, enter the name of schema file along with the file extension in the File Name filed. Choose Finish.
Double-click the new schema file and enter the content.
Note
You should be able to view all the added schema files under the WSDL node
A schema file can contain multiple elements, you can add the required XSD elements in the rules composer.
In the Project Explorer view, expand the rules composer DC node, the Rules Modeling node and double-click the Aliases node.
In the Project Aliases Editor that appears, choose the XSD Aliases tab and choose the Add XSD Elements button.
In the Add XSD Element dialog box that appears, expand the Namespace node and choose the Global Element.
Note
If you are not able to view the XSD elements, you need to build project.
In the SAP NetWeaver Developer Studio, choose
Or
In the Project Explorer view, in the context menu of the rules composer DC node, choose
Choose Use namespace prefixes for generated aliases. (Optional)
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.
Enter the limit in the XPath Recursion Limit field. (Optional)
Choose Finish and save the changes.