Show TOC

Creating the XML SchemaLocate this document in the navigation structure

Procedure
  1. In the Project Explorer view, expand the src node and in the context menu of the wsdl node, choose Start of the navigation path New Next navigation step Other End of the navigation path.

  2. In the wizard that appears, expand the XML node and choose XML Schema . Choose Next .

  3. In the screen that appears, enter callcharges.xsd in the File Name field. Choose Finish .

    In the Project Explorer view, you should see the callcharges.xsd under the wsdl node.

  4. In the callcharges.xsd window that appears choose the Source tab at the bottom.

  5. In the tab page that appears delete all existing content and copy the following in the Source tab page:

                      <?xml version="1.0" encoding ="UTF-8"?>
                      <xsd:schema xmlns:xsd ="http://www.w3.org/2001/XMLSchema"
                      xmlns="http://www.example.org/CallCharges" elementFormDefault="qualified"
                      targetNamespace="http://www.example.org/CallCharges">
                      <xsd:element name="CallCharges" type="CallChargesType"/>
                       <xsd:complexType name="CallChargesType">
                      <xsd:sequence maxOccurs="unbounded">
                      <xsd:element name="Charges" type="CallChargeType"/>
                      </xsd:sequence>
                      </xsd:complexType>
                      <xsd:complexType name="CallChargeType">
                      <xsd:sequence>
                      <xsd:element name="ConnectionProvider" type="xsd:string"/>
                      <xsd:element name="ConnectionRate" type="xsd:double"/>
                      <xsd:element name="DestinationCountry" type="xsd:string"/>
                      <xsd:element name="OriginCountry" type="xsd:string"/>
                      <xsd:element name="TypeOfLine" type="xsd:string"/>
                      </xsd:sequence>
                      </xsd:complexType>
                      </xsd:schema>
                   
  6. Press Ctrl + Shift + F .

  7. Save the changes

Adding the XSD Elements to the Rules Composer DC

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

  2. In the Project Aliases Editor that appears, choose the Aliases tab.

  3. In the tab page that appears, choose the Add button and in the menu that appears, choose the XSD Element .

  4. In the dialog box that appears, expand the http://www.example.org/CallCharges node and select CallCharges .

    Note

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

    • In the SAP NetWeaver Developer Studio, choose Start of the navigation path Project Next navigation step Build Automatically. End of the navigation path

      Or

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

  5. Choose Finish .

  6. In the Alias Name table select all the XML schema element checkboxes.

  7. Save the changes.

Renaming the XSD Aliases (Optional)

  1. In the Alias Name table, click each of the aliases. The aliases become editable. Enter an alternative name for the alias.

    Alias Name

    Rename as

    CallCharges/Charges/ConnectionProvider

    Connection Provider

    CallCharges/Charges/ConnectionRate = {double}

    Set Rate = {double}

    CallCharges/Charges/DestinationCountry

    Destination Country

    CallCharges/Charges/TypeofLine

    Type Of Line