Table of Contents

Search

  1. Preface
  2. Web Services
  3. SOAP Web Services
  4. WSDL Data Object
  5. Schema Object
  6. How to Create a SOAP Web Service
  7. Operation Mappings
  8. Parsing Web Service SOAP Messages
  9. Generating Web Service SOAP Messages
  10. Web Service Consumer Transformation
  11. REST Web Services
  12. How to Create a REST Web Service
  13. REST Web Service Consumer Transformation
  14. REST Web Service Consumer Transformation Use Cases
  15. REST and SOAP Web Service Administration
  16. Datatype Compatibility

Web Services Guide

Web Services Guide

Configuring the Output Mapping

Configuring the Output Mapping

To create a primary-key foreign-key relationship between customers and orders, each group must contain the customer number.
  1. Add a Customer_Fkey port below Order_Date in the Orders group of the REST Output transformation.
    The Customer_Fkey port receives a customer number. You need to add this port to receive a customer number in the Orders group and to populate the foreign key. The customer number does not appear with each order in the output.
  2. Link the Customer_Key from the
    Ports
    panel to the Key_Orders_Resource on the
    Output
    panel. To create a link, click the Customer_Key to select it, then select the Key_Orders_Resource. Click the
    Map
    icon on the
    Ports
    panel to create the link.
    You cannot drag a port to create a link.
  3. Select the Order_Key port and the Key_Orders element. Click
    Map
    to create the link.
    Order_Key must have links to the Key_Orders element and the Order_Key element.
  4. Select the Customer_Fkey port and the Fkey_Orders_Resource element. Click
    Map
    to create the link.
    The following image shows the output mapping with the links to the keys:
    The Ports view of the Output transformation is showing the output mapping between the input ports and the elements of the output response message. The left panel shows the Ports and the right panel shows the elements. Each panel shows two groups of fields, the Orders_Resource group and the Orders group.. In the right panel the Orders_Resource group has the Key_Orders_Resource key. The Orders group has a key called Key_Orders and a foreign key called FKey_Orders_Resource. Order_key is linked to Key_Orders. Customer_Fkey is linked to Fkey_Orders_Resource. Customer_Key is linked to Key_Orders_Resource.

0 COMMENTS

We’d like to hear from you!