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

Example REST Web Service

Example REST Web Service

Hypostores has a REST web service that returns all the orders for a customer. A salesman can send a request for the orders from a web browser to the web service. The request contains one or more customer numbers. The web service returns each customer name and a list of all the orders for the customer in a JSON file.
The REST web service contains a mapping that reads a Customers table to retrieve the customer name. The mapping contains a Lookup transformation. The Lookup transformation retrieves all the orders for each customer from an Orders table. The mapping contains a REST Output transformation that returns a hierarchical JSON file. The JSON file structure has customer number and customer name in a parent group. The JSON file contains a child group for the orders within customer. The group contains multiple occurring orders. Each order has an order number, price, and order date.

0 COMMENTS

We’d like to hear from you!