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

Configuring the Fault Transformation

If the web service operation returns faults or if you create a Fault transformation for a generic fault, configure each Fault transformation. Define input ports and map data from the input ports to nodes in the operation fault.
  1. Select the Fault transformation in the editor.
  2. Click the
    Ports
    tab of the
    Properties
    view.
  3. Click
    Fault mapping
    .
    The
    Operation fault
    area shows the response or fault message 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 fault includes anyType elements, any elements, anyAttribute attributes, derived type elements, or substitution groups, choose objects in the
    Operation Fault
    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 fault
    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 fault to input 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 click
    New Port
    .
    Drag ports from other transformations
    In the editor, drag a port from another transformation to the Fault transformation.
    Copy ports
    Select ports from another transformation and copy them to the
    Operation Fault
    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 fault to input ports and groups. The Developer tool also create the input ports and groups that it requires to map the data.
  8. To map data from the input ports to nodes in the operation fault hierarchy, drag the pointer from each input port or group to the associated node in the operation fault.
    The input field location appears next to the node in the
    Operation fault
    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 fault hierarchy.
    Select input ports from the
    Select Location
    dialog box
    Click in the
    Location
    column of a key in the operation fault 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 Fault
    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 fault and press
    Delete
    .

0 COMMENTS

We’d like to hear from you!