Using Postman with irAuthor

  • Updated

Postman is a third party tool often used to test calling REST services.  This post will give a quick demonstration of using Postman to call InRule’s “out-of-the-box” irServer® Rule Execution Service using its REST endpoint, which can be installed using the InRule installer.

In this demonstration, I will first create a new rule application using irAuthor®, store it in irCatalog®, and then use Postman to execute the rule application using the irServer® Rule Execution Service.

Installing InRule

This demonstration will use three components, which are highlighted in the screen shot below:

Hello World!

We’ll start by authoring a simple rule application and storing it in irCatalog.

Here are the steps I took to do this:

  • Launched irAuthor.
  • On the Start page, clicked New Rule Application.
  • On the Settings page, changed the name of the rule application from NewRuleApplication to HelloWorld.
  • In the Entities pane, right-clicked on Entity1, and added a new field called Field1
  • Added a new rule to set the value of Field1 to Hello World1, as shown below
  • File-Save As, and saved the rule application to a local irCatalog service.


To save the rule application in irCatalog, I just select File->Save-As, and connect to my local irCatalog service.

I’ll now click the “Test” button to launch irVerify and click the “Apply Rules” button to test out the rule.  As you can see below, it ran the rule and set Field1 to “Hello World!”

HelloWorld Rule

Setting the Credentials in the web.config file

I opened my Rule Execution Service web.config which I found here on my machine:

C:\Program Files\InRule_v5.7.3\irServer\RuleEngineService\IisService\web.config

In the following section, I added my credentials.

<catalog catalogServiceUri="http://localhost/InRuleCatalogService/Service.svc" userName="admin" password="password" allowPerRequestCatalogCredentials="false"/>

Calling irServer® Rule Execution Service from Postman

Postman can be downloaded here:

To complete this demonstration, I just needed to launch Postman, and set up four things: the HTTP Method, the URL for my local irServer Rule Execution Service instance, the Request, and Headers, as listed below:

The HTTP Method:


The URL:


The Body (using JSON):

{ "RepositoryRuleAppRevisionSpec":
{ "RuleApplicationName":"HelloWorld" }, "UseIntegratedSecurity":"false" }, "RuleEngineServiceOptions": { "Overrides": "" }, "RuleEngineServiceOutputTypes":
{ "ActiveNotifications": "false", "ActiveValidations": "false", "EntityState": "true", "Overrides": "false", "RuleExecutionLog": "false" }, "EntityName": "Entity1",
"EntityState": "{}" }

The Header:


Here is what Postman looks like just before clicking the Send button:


When clicking the Send button, Postman will POST the Request to the URL and get back a response.  Here is what Postman looks like after clicking the Send button, and as you can see, it did correctly run the rule and set Field1 to “Hello World!”

Postman Request

Here is the response I got back:

<RuleEngineHttpServiceResponse xmlns=”” xmlns:i=””>
<EntityState>{“Field1″:”Hello World!”}</EntityState>
<Overrides i:nil=”true”/>
<RuleExecutionLog i:nil=”true”/>
<RuleSessionState i:nil=”true”/>


Was this article helpful?

0 out of 0 found this helpful



Please sign in to leave a comment.