IBM InfoSphere DataStage, Version 11.3.1
Example 1: Configuring the REST step
In the REST step, John configures the URL and the HTTP POST method to use to invoke the REST web service.
Procedure
- In the outline, click the REST step.
- On the General page, select POST from the HTTP method list.
- In the URL field, specify a parameter
for the URL string:
- Click Insert Parameter.
- In the Insert Parameter window, select the restServer job parameter.
- Click OK to add the parameter to the URL.
- Repeat steps a to c to enter the restServerPort job parameter to the URL.
- Enter the rest of the URL manually: http://#restServer#:#restServerPort#/jackson/pojo/person/collectionofcollection
- On the Request page, specify information
about the request body of the REST web service:
- Select the Load the outgoing body from check box.
- From the Content type list, select application/json.
- From the Encoding list, select UTF-8.
- Select the A file whose path is set on the Mappings page as bodyFilePath check box.
- On the Response page, specify information
about the response body of the REST web service:
- Select the Pass the received body to check box.
- Select the A text node named body in the Output schema option.
- From the Content type list, select application/json.
- On the Mappings page, map the bodyFilePath node
to the constant value '#Directory#/inputHTTP.json'
, which specifies the path of the text file that contains the request
body. Note: Test Assembly feature is not enabled for the REST step in the Designer client. So, you can not run the assembly in design mode if there is a REST step in the assembly.
Parent topic: Example 1: Using the HTTP POST method
Last updated: 2015-10-21
PDF version of this information:
IBM InfoSphere Information Server Hierarchical Data Transformation Guide