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

Step 4. Create a Predefined Fault

Step 4. Create a Predefined Fault

You can optionally create a fault to send user-defined errors within the SOAP response. When you create a predefined fault, the Developer tool adds a Fault transformation to the operation mapping.
Create a web service and define one or more operations. You can create a fault when you create an operation or you can add a fault to an operation. An operation can have multiple faults.
  1. Open a web service.
  2. In the
    Outline
    view, select the operation mapping.
    The operation mapping appears in the editor.
  3. Click the
    Operation
    tab in the
    Properties
    view.
  4. Click the arrow next to the
    New
    button.
  5. Click
    Fault
    .
  6. Choose to create an element or reuse an element.
    • Select
      Create New Element
      to create an element for the fault. You can create child elements and multiple-occurring elements.
    • Select
      Reuse Existing Element
      to reuse an element for the fault.
    The Developer tool adds elements to the detail element in the fault message hierarchy.

0 COMMENTS

We’d like to hear from you!