Select Page

Please Mr. Postman

by | Mar 30, 2018

“Please Mr. Postman” was a marvelous song by The Marvelettes from 1961.  Postman also happens to be a marvelous 3rd– party tool which I often use to test calling REST services.  This blog 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 the catalog.

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

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):


"RuleApp": {








"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”/>




In summary, although this blog post had nothing to do with the song “Please Mr. Postman,” it did show a simple demonstration of using Postman to call the irServer® Rule Execution Service.  Feel free to comment below if you have any thoughts or questions.




We’d love to share company and product updates with you! Please enter your email address to subscribe to monthly updates from InRule. 

If at any time you want to unsubscribe, you can easily do so by clicking “unsubscribe” at the bottom of every message we send or visiting this page.