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. Appendix A: Datatype Compatibility

Web Services Guide

Web Services Guide

Create an Operation from a Reusable Object

Create an Operation from a Reusable Object

Use the
Create a Web Service
wizard to create a web service and create operations from reusable objects.
You can create operations that look up data in logical data objects, flat file data objects, and relational data objects. You can also create operations from a mapplet or reusable transformation. The mapplet or reusable transformation defines elements of the operation input and output. You cannot create an operation from a Web Service Consumer transformation.
After you complete the steps to create a web service, you can create an operation from a data object, a mapplet, or reusable transformation within the
Create a Web Service
wizard.
  1. In the
    New Web Service
    dialog box, click the arrow next to the
    New
    button. Then, select
    Operation
    Create from a Reusable Object
    .
    The
    Select Reusable Object
    dialog box appears.
    You can also create an operation from a data object by opening a web service in the
    Object Explorer
    and selecting
    Overview
    Operations
    area. Click the arrow next to the
    New
    button.
  2. Select the object and click
    OK
    .
  3. Optionally, enter the operation name and description.
    The Developer tool uses the name you provide for the operation to define the names for the operation input and the operation output.
  4. Select the binding type of the operation.
    Default is SOAP 1.1. You cannot change the binding type of the operation after you have created and saved the operation.
  5. Click the operation input to view and configure its properties.
    1. Select the operation input fields on the
      Operation Input
      tab.
      If the object has more than one input group, select the input group and the operation input fields on the
      Operation Input
      tab.
    2. Optionally, configure the minimum and maximum number of occurrences for each element.
    3. Optionally, click the
      Mapping Input
      tab to configure how to map data from the operation input to the output ports.
      You can also map the data when you configure the Input transformation.
  6. Click the operation output to display and configure its properties.
    1. Select the operation output fields on the
      Operation Output
      tab.
      If the object has more than output group, select the output group and the operation output fields on the
      Operation Output
      tab.
    2. Optionally, configure the minimum number of occurrences for each element.
    3. Optionally, click the
      Mapping Output
      tab to configure how to map data from the input ports to the operation output.
      You can also map the data when you configure the Output transformation.
  7. If the operation sends user-defined faults, click the arrow next to the
    New
    button and then click
    Fault
    .
    You can choose to create an element for the fault or select a reusable element.
  8. Click each operation fault to display and configure its properties.
    You can click the
    Mapping Fault
    tab to configure how to map data from the input ports to the operation fault. You can also map the data when you configure the Fault transformation.
  9. Repeat steps 1 through 8 to create and configure more operations.
  10. Click
    Finish
    .
    The Developer tool creates an operation mapping for each operation based on how you configure each operation.
You can optionally create an element or a predefined fault.

0 COMMENTS

We’d like to hear from you!