In the Project Explorer view, expand the src node and in the context menu of the wsdl node, choose
.In the wizard that appears, expand the XML node and choose XML Schema. Choose Next.
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.
In the callcharges.xsd window that appears choose the Source tab at the bottom.
In the tab page that appears delete all existing content and copy the following in the Source tab page:
Syntax
<?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>
Press Ctrl+Shift+F.
Save the changes
The result must be as shown below:
In the Project Explorer view, expand the Rules Modeling node and double-click the Aliases node.
In the Project Aliases Editor that appears, choose the XSD Aliases tab and in the tab page that appears, choose the Add XSD Elements tab.
In the dialog box that appears, expand the http://www.example.org/CallCharges node and select CallCharges as shown below:
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 Finish.
In the Alias Name table select all the XML schema element checkboxes as shown below:
Save the changes.
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 |