In the REST step, Tom edits the term, which is in the output
of the XML Parser step.
About this task
Because Tom has the
Information Governance Catalog Glossary
Author role, he can read and write content in the business glossary.
To modify the term definition, Tom needs the URI for the term, which
he got from the XML Parser step. He modifies the term definition by
using the HTTP PUT method in the REST step.
Procedure
- Click Palette, and then double-click
the REST step to add another REST step to the outline. The step is
added between the XML Parser step and the Output step.
- On the General page, select PUT from
the HTTP method list.
- In the URL field, specify a URL
string that includes job parameters:
- Click Insert Parameter.
- In the Insert Parameter window, select the BGServer job
parameter, to include in the URL.
- In the Local parameter field,
enter uri to add the local parameter to the
URL.
- Click OK to add the parameter
to the URL.
- Repeat steps a, b and d to enter the BGPort job
parameter to the URL.
- Enter the rest of the URL manually: https://#BGServer#:#BGPort#/<uri>
In this example, uri is the local parameter that must be
mapped to the uri field of the XML Parser step on the Mappings page.
- On the Security page, specify information about the security
of the IGC REST API.
- From the Authentication list,
select Basic, and then specify the user name
and password to use to access the REST web service.
- Select the Enable SSL check box
because IGC REST APIs are secured with SSL.
- Select the SSL server authentication check
box.
- From the Trustore type list,
select PKCS12.
- In the Trustore file field, specify
the path of the truststore file iis-client-truststore.p12,
which is available in the Information Server/ASBNode/conf folder.
- 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/xml.
- From the Encoding list, select UTF-8.
- Select the A file whose path is set on the
Mappings page as bodyFilePath check box.
The bodyFilePath node is created on the Mappings page.
You will map the bodyFilePath node to the path for the source file
that contains the request body. The request body contains term details
with the correct definitions.
- 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/xml.
- On the Mappings page, map the following
items:
- Map the uri node to the uri field of the XML Parser
step.
- Map the bodyFilePath node to the constant value, '#Directory#TermInput.xml',
which specifies the path of the XML file that contains the request
body.
The following figure shows that the Target items are mapped
to the Source items.