Add the XPath concatenate function

Before you start:

This topic demonstrates how to write an XPath function that concatenates the FirstName and LastName from the input message, and adds a white space separator in the target NAME element. When you add the XPath expression and save the map, link lines are automatically generated between the source and target to indicate that these elements are mapped.

  1. From the Message Mapping editor Source pane, select the first source to concatenate (for example, FirstName), Ctrl+click to select the second source to concatenate (for example, LastName), and drag both elements onto the target (for example, NAME) in the Target pane.
  2. From the Message Mapping editor Spreadsheet pane, select the target (for example, NAME).
  3. From the Edit pane, enter the XPath function (for example, fn:concat($source/AirlineRequest/Purchase/Customer/FirstName, ' ', $source/AirlineRequest/Purchase/Customer/LastName)
  4. Save the map by clicking File > Save.
You have now added an XPath function that concatenates the two source elements in the input message into a single target element in the output message.
Now go to Add the database Select operation.
Related reference
Message mappings