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 Input Transformation

Configuring the Input Transformation

If the web service operation receives a SOAP request message, configure the Input transformation to process the request. Define output ports in the transformation. Map nodes from the operation input to the output ports.
  1. Select the Input transformation in the editor.
  2. Click the
    Ports
    tab of the
    Properties
    view.
  3. Click
    Input mapping
    .
    The
    Operation Input
    area shows the request message hierarchy. Define the output ports in the
    Ports
    area.
  4. Optionally, click
    Show Lines
    to view the lines that connect the output ports to the nodes in the operation input.
    You can choose to view all the lines or to view the lines for the selected ports.
  5. Optionally, click
    Show as Hierarchy
    to display the output ports in a hierarchy.
    Each child group appears under the parent group.
  6. If the operation input includes anyType elements, any elements, anyAttribute attributes, derived type elements, or substitution groups, choose objects in the
    Operation Input
    area. In the
    Type
    column for a node, click
    Choose
    and then choose one or more types, elements, or attributes from the list.
  7. To add an output 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 Input
    area to an empty column in the
    Ports
    area. If the node is a group node, the Developer tool adds a group without ports. If other output groups exist, the
    Map to new group
    dialog box prompts you to relate the group to another group. The Developer tool creates keys for related groups.
    Manually add a group
    Click
    New
    Group
    to add a 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 creates the output ports and groups that it requires to map the data. If the first level of the hierarchy contains a multi-occurring parent node with one or more multi-occurring child nodes, the Developer tool does not create the ports or map the first level of the hierarchy.
  8. To add output ports and map nodes to the output ports, use one of the following methods:
    Option
    Description
    Drag a node
    Drag the pointer from a node in the operation input to a group name or port in the
    Ports
    area.
    Click the
    Map
    button
    Select one or more nodes in the
    Operation Input
    area. Select a destination in the
    Ports
    area. Click
    Map
    .
    Copy ports
    Select ports from another transformation and copy them to the
    Operation Input
    area. To copy ports, you can use keyboard shortcuts or you can use the copy and the paste buttons in the Developer tool.
    Manually add a port
    Click
    New
    Field
    to add a port.
    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 creates the output ports and groups that it requires to perform the mapping. If the first level of the hierarchy contains a multi-occurring parent node with one or more multi-occurring child nodes, the Developer tool does not create the ports or map the first level of the hierarchy.
  9. To clear the locations of ports, use one of the following methods:
    Option
    Description
    Click the
    Clear
    button
    Select one or more ports in the
    Ports
    area and click
    Clear
    .
    Delete the lines that connect nodes to ports
    Select one or more lines that connect the nodes in the operation input to the output ports and press
    Delete
    .
  10. To map the complete SOAP request as XML, right-click the
    Request
    node in the
    Operation Input
    area and select
    Map as XML
    .

0 COMMENTS

We’d like to hear from you!