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

REST Web Services Overview

REST Web Services Overview

An Informatica REST web service processes an HTTP request for data and returns a response that is a JSON file or an XML file.
An external application, web browser, or a REST Web Service Consumer transformation can connect to a REST web service and send a request. The REST web service processes the request and sends a response back to the client.
For example, a web service client sends a request to run a web service operation. The web service client passes a customer ID in the request. The web service retrieves the customer and the order information from an orders table. The web service returns the information to the client in a JSON file.
Create an Informatica REST web service by defining the data service in the Developer tool. You can also deploy a data object as a REST web service.
An Informatica REST web service has the following components:
Resource
A resource includes the mapping that the REST web service runs and the definition of the response message that the web service returns. The resource also includes a resource ID, which is a key field in the output data. You can create a resource from a data object or you can manually define a resource. The Developer tool creates the resource if you deploy an object as a REST web service. A web service can have multiple resources.
Request message
A request from a web service client to the web service to perform a task. An Informatica web service can perform an HTTP GET method. The request message is a string that contains the name of the web service, the name and network location of the resource to perform the task, and the parameters to filter the output.
Resource mapping
The mapping that returns the data to return to the web service client. You can create a default or a custom resource mapping. A default resource mapping contains a Read transformation and an Output transformation with the same ports. A custom mapping might contain other transformations with the Read transformation and an Output transformation. A custom resource mapping might have a Read transformation with different ports than the Output transformation.
Response message
A JSON or XML file that contains the data to return to the web service client. The response message can contain a hierarchy of elements and multiple-occurring data.

0 COMMENTS

We’d like to hear from you!