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 Transformation

Configuring the Output Transformation

If the web service operation returns a response message, configure the Output transformation. Define input ports in each transformation and map data from the input ports to nodes in the operation output hierarchy.
  1. Select the Output transformation in the editor.
  2. Click the
    Ports
    tab of the
    Properties
    view.
  3. Click
    Output Mapping
    .
    The
    Operation Output
    area shows the operation output hierarchy. Define the input ports in the
    Ports
    area.
  4. Optionally, click
    Show Lines
    to view the lines that connect the input ports to the nodes in the operation fault. You can choose to view all the lines or to view the lines for the selected ports.
  5. If the operation output includes anyType elements, any elements, anyAttribute attributes, derived type elements, or substitution groups, choose objects in the
    Operation Output
    area. In the
    Type
    column for a node, click
    Choose
    and then choose one or more types, elements, or attributes from the list.
  6. To add an input group, use one of the following methods:
    Option
    Description
    Drag a node
    Drag the pointer from a group node or a child node in the
    Operation output
    area to an empty column in the
    Ports
    area. If the node is a group node, the Developer tool adds a group without ports.
    Manually add a group
    Click the arrow next to the
    New
    button and then click
    New Group
    .
    Select
    Map first level hierarchy
    Select
    Map first level hierarchy
    . The Developer tool maps nodes in the first level of the operation input to output ports and groups. The Developer tool also create the input ports and groups that it requires to map the data.
  7. To add an input port, use one of the following methods:
    Option
    Description
    Manually add a port
    Click the arrow next to the
    New
    button and then click
    New Port.
    Drag a port from another transformation
    In the editor, drag a port from another transformation to the Output transformation.
    Copy a port
    Select ports from another transformation and copy them to the
    Operation output
    area. To copy ports, you can use keyboard shortcuts or you can use the copy and the paste buttons in the Developer tool.
    Select
    Map first level hierarchy
    Select
    Map first level hierarchy
    . The Developer tool maps nodes in the first level of the operation output to input ports and groups. The Developer tool also create the input ports and groups that it requires to perform the mapping.
  8. To map data from the input ports to nodes in the operation output hierarchy, drag the pointer from each input port or group to the associated node in the Operation Output. The input field location appears next to the node in the
    Operation Output
    area.
  9. To map XML data from an input port to the complete SOAP response, right-click the port and select
    Map as XML
    .
  10. To map input ports as a composite key, use one of the following methods:
    Option
    Description
    Drag input ports
    Select two or more input ports and drag them to a key in the operation output hierarchy.
    Select input ports from the
    Select Location
    dialog box
    Click in the
    Location
    column of a key in the operation output hierarchy and then select the input ports.
  11. To clear the locations of nodes, use one of the following methods:
    Option
    Description
    Click the
    Clear
    button
    Select one or more nodes in the
    Operation Output
    area and click
    Clear
    .
    Delete the lines that connect ports to nodes
    Select one or more lines that connect the input ports to the nodes in the operation output and press
    Delete
    .

0 COMMENTS

We’d like to hear from you!