Mapping OSM Data to Service Action XML Parameters Using XPath
To map OSM XML data to ASAP or IP Service Activator parameters using an XPath expression:
-
Open a data schema associated to an OSM project.
The Data Schema editor is displayed.
-
Right-click in the parameter area and select Add Structure (CTRL + ALT + S).
The Create Data Schema Structure dialog box is displayed.
-
Do the following:
-
In the Name field, enter a name for the structure. For example, XMLTypeNoChildren.
-
Click Finish.
The empty structure is displayed in the Data Schema editor parameter area.
-
-
Open an OSM order that you want to associate the structure to.
The Order editor is displayed.
-
Right-click in the Order Template area and select Select from Dictionary.
The Select Data Elements dialog box is displayed.
-
Select the empty structure.
-
Click OK.
The structure is displayed in the Order Template area.
-
Open an Activation Task that you want to associate the structure to.
The Activation Task editor is displayed.
-
In the Request Data tab Task Data area, select Task Data.
-
Right-click in the Task Data area and select Select from Order Template.
The Select an Order Template Node dialog box is displayed.
-
Select the empty structure.
-
Click OK.
The structure is displayed in the Task Data area.
-
In the Service Actions area, right-click and select Add Service Action.
The Select a Service Action dialog box is displayed.
-
Select a service action that includes the XML parameter you want to map to the empty OSM structure.
-
Click OK.
The service action is displayed in the Service Actions area.
-
Expand the newly added service action.
All parameters associated to the service action appear.
-
From the Task Data area, drag the empty structure to the corresponding service action XML parameter in the Service Action area.
A check mark appears next to the parameter to indicate that it is mapped to the OSM structure.
-
Click the service action parameter. Verify the following fields in the Properties tab:
-
In the Binding Type field, ensure that the XPath expression field is selected.
-
In the Binding field, ensure that the XPath expression references the OSM structure. For example: osm:XMLTypeNoChildren
-
Related Topics