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.
On the Decision Service page for Cargo, click Test Execution.
On the Test Execution page, click Choose File. Let’s try the JSON
request first.
Locate the JSON request file in the project. The Request Section is now
populated.
Click Execute.
You can see the Response field is now populated with a JSON-formatted response
message.
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.