From the Rule Execution Server console,
you test REST API requests for execution of a ruleset in XML or in
JSON form.
Before you begin
Restriction: Browser compatibility: The test feature
is not supported by Internet Explorer 8 and earlier versions. If you
work with Internet Explorer 9 or 10, make sure that the command is deactivated.
About this task
Before you execute a ruleset in XML or in JSON form from
a client, you can test your execution request in the
Rule Execution Server console.
Tip: You can also test the execution of a ruleset without generating
it as a hosted transparent decision service.
Procedure
- Select a ruleset and open the Ruleset View as
explained in Viewing a deployed ruleset.
- Click Retrieve HTDS description file.
- Click REST.
- Select the WADL generation options as explained in Viewing or downloading an HTDS description file.
- Click Test.
The
execution request is displayed in a separate browser window.
A
drop-down list allows you to select the execution format (XML or JSON).
The sample payload is generated in the format you choose.
- Click Execute Request.
The response is displayed in the Server Response frame.
If you select Decision Trace before you click Test,
the decision trace is included in the response.
- Optional: To validate the generated XML code,
click the Validate
XML icon. If the request is invalid,
an error message indicates the reason and location of the failure.
A red dot is displayed next to the incorrect line in the request.
Note
that the JSON format does not support validation.
- Optional: Use the Undo and Redo icons
to erase or restore what you type in the text areas.