After you deploy a Decision Service, you can test the Decision Service to verify that it can be accessed as a Web Service, and to make sure that the Vocabulary has been properly prepared. The Corticon Web Console lets you send an XML or JSON request to invoke the deployed Decision Service.

  1. On the Decision Service page for Cargo, click Test Execution.
    media/image21.png
  2. On the Test Execution page, click Choose File. Let’s try the JSON request first.
  3. Locate the JSON request file in the project. The Request Section is now populated.
  4. Click Execute.
    You can see the Response field is now populated with a JSON-formatted response message.
  5. Now click Choose Request File again to select the XML file you edited. Then click Execute.
    Notice that the request and the response messages contain the terms Shipment and itemWeight. Corticon translated the Shipment and itemWeight tags in the request message to Cargo and Cargo.weight in the Vocabulary, and, after processing, translated the results back to Shipment and itemWeight.

You have now successfully tested the deployed Decision Service.

Congratulations! You have completed this tutorial.

You have prepared the Vocabulary for deployment, deployed a Ruleflow as a Decision Service to Corticon Server, and confirmed that the Decision Service can be accessed as a Web Service.