---
title: "RESTful Configuration"
id: "restful-configuration"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/restful-configuration"
updated: 2026-12-01T00:44:24Z
---

# RESTful Configuration

### RESTful Configuration

To connect to a RESTful Web Service Provider, first create a new **RESTful Configuration** in the Project Browser of the Ignition Designer by right­-clicking on **RESTful Configurations** in the **Web Services** section and selecting **New RESTful Configuration**.

| ![Note](/resources/Storage/user-manual/Note.png) | In 3.81.10 SP7 and later Web Services supports OAuth strategy selector for RESTFul configurations.<br><br>This strategy encodes the Client's ID and Secret into the "Authorization" Header. The credentials are encoded specifically in this format that encodes the tokens into base-64. This strategy is specifically needed by Xero, but it is a common strategy used/accepted by a variety of OAuth providers. |
| --- | --- |

![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-51-12.png)

* * *
 ### General Settings

![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-51-51.png)

| Name | Description |
| --- | --- |
| **URL** | The target location URL for the RESTful configuration.<br><br>Example: https://reqres.in/api/users |
| **HTTP method** | HTTP requests include a method, which is a keyword explaining the action that the client wants the server to perform for the material included in the request. The available HTTP methods are **GET**, **POST**, **PUT**, **DELETE**. |
| **Data format** | The available options are **JSON** and **XML**. |
| **Encoding** | The available encoding types are **UTF\_8**, **UTF\_16**, **ISO\_8859\_1**, **Windows\_1252**, and **ASCII**. |
| **Query Spaces** | Drop-down list that determines whether "**-**" or "**%20**" is used as the escape character(s) for typed spaces in the URL Query String. Default is "**Plus (-)**".<br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-52-14.png)<br><br>Example:<br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-52-54.png)<br>**Plus (-):** http://localhost:8088/main/system/ws/rest/test?test=string-with-spaces<br>**Percent (%20):** http://localhost:8088/main/system/ws/rest/test?test=string%20with%20spaces |
| **Timeout** | This is the time the module will wait until a response is received from the URL. If no response is received then an error is generated.<br><br>Calls that take more than *&lt; Gateway Read Timeout Setting&gt;* seconds will time out in the Client. |
| **Max retries** | The maximum number of retries, in case of connection failure. Default value is 3. |
| **Bypass SSL server authentication** | The consumer (client) will bypass SSL server authentication if the checkbox is selected. |
| **Enable error reporting for failure HTTP response codes** | An exception will be thrown when the web service call results in a code like 404 or other error codes, if the checkbox is selected. |

### HTTP Authentication

![](/resources/Storage/user-manual/restful-configuration/restful-configuration-2025-01-22.png)
 | Name | Description |
| --- | --- |
| **Type** | The options are HTTP Basic, HTTP Digest, HTTP NTLM, and Oauth. |
| **OAuth Strategy** | **Body:** The OAuth parameters are built into the body of the request payload.<br><br><br><br>**Basic Header:** OAuth client parameters are embedded in a header in the request payload. |
| **Username** | The user name to set for the new RESTful configuration. |
| **Password** | The password to set for the new RESTful configuration. |
| **Resource** | A list of OAuth authorization grants. |

#### Setting Up Authorization Grants

You set these up in the Designer Project Browser under **Web Services/Consumer/OAuth/Authorization Code Grants**

You must set up an OAuth service before configuring authorization grants.

#### ![](/resources/Storage/user-manual/restful-configuration/restful-configuration-2025-01-22-1.png)
 * * *
 ### Request Message

![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-56-56.png)

| Name | Description |
| --- | --- |
| **Request Header** | Depending on the Web Service, these can be used to identify the format of the body object you are POSTing to the web service, or perhaps an API key or other identifying tool. A standard Request Header Item would be **Content-type** which can be used to indicate the format of the body object. The most common value for **Content-type**is **application/json**, but this is entirely dependent upon the web service you are posting to and the data format you are posting.<br><br>Other common mime-types are...<br>| **# Data interchange** |<br>| --- |<br>| application/atom-xml atom; |<br>| application/json json map topojson; |<br>| application/ld-json jsonld; |<br>| application/rss-xml rss; |<br>| application/vnd.geo-json geojson; |<br>| application/xml rdf xml; |<br>|  |<br>| **# JavaScript** |<br>| application/javascript js; |<br>|  |<br>| **# Manifest files** |<br>| application/manifest-json webmanifest; |<br>| application/x-web-app-manifest-json webapp; |<br>| text/cache-manifest appcache; |<br>|  |<br>| **# Media files** |<br>| audio/midi mid midi kar; |<br>| audio/mp4 aac f4a f4b m4a; |<br>| audio/mpeg mp3; |<br>| audio/ogg oga ogg opus; |<br>| audio/x-realaudio ra; |<br>| audio/x-wav wav; |<br>| image/bmp bmp; |<br>| image/gif gif; |<br>| image/jpeg jpeg jpg; |<br>| image/jxr jxr hdp wdp; |<br>| image/png png; |<br>| image/svg-xml svg svgz; |<br>| image/tiff tif tiff; |<br>| image/vnd.wap.wbmp wbmp; |<br>| image/webp webp; |<br>| image/x-jng jng; |<br>| video/3gpp 3gp 3gpp; |<br>| video/mp4 f4p f4v m4v mp4; |<br>| video/mpeg mpeg mpg; |<br>| video/ogg ogv; |<br>| video/quicktime mov; |<br>| video/webm webm; |<br>| video/x-flv flv; |<br>| video/x-mng mng; |<br>| video/x-ms-asf asf asx; |<br>| video/x-ms-wmv wmv; |<br>| video/x-msvideo avi; |<br>| image/x-icon cur ico; |<br>|  |<br>| **# Microsoft Office** |<br>| application/msword doc; |<br>| application/[vnd.ms](http://vnd.ms)-excel xls; |<br>| application/[vnd.ms](http://vnd.ms)-powerpoint ppt; |<br>| application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; |<br>| application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; |<br>| application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; |<br>|  |<br>| **# Web fonts** |<br>| application/font-woff woff; |<br>| application/font-woff2 woff2; |<br>| application/[vnd.ms](http://vnd.ms)-fontobject eot; |<br>| application/x-font-ttf ttc ttf; |<br>| font/opentype otf; |<br>|  |<br>| **# Other** |<br>| application/java-archive ear jar war; |<br>| application/mac-binhex40 hqx; |<br>| application/octet-stream bin deb dll dmg exe img iso msi msm msp safariextz; |<br>| application/pdf pdf; |<br>| application/postscript ai eps ps; |<br>| application/rtf rtf; |<br>| application/vnd.google-earth.kml-xml kml; |<br>| application/vnd.google-earth.kmz kmz; |<br>| application/vnd.wap.wmlc wmlc; |<br>| application/x-7z-compressed 7z; |<br>| application/x-bb-appworld bbaw; |<br>| application/x-bittorrent torrent; |<br>| application/x-chrome-extension crx; |<br>| application/x-cocoa cco; |<br>| application/x-java-archive-diff jardiff; |<br>| application/x-java-jnlp-file jnlp; |<br>| application/x-makeself run; |<br>| application/x-opera-extension oex; |<br>| application/x-perl pl pm; |<br>| application/x-pilot pdb prc; |<br>| application/x-rar-compressed rar; |<br>| application/x-redhat-package-manager rpm; |<br>| application/x-sea sea; |<br>| application/x-shockwave-flash swf; |<br>| application/x-stuffit sit; |<br>| application/x-tcl tcl tk; |<br>| application/x-x509-ca-cert crt der pem; |<br>| application/x-xpinstall xpi; |<br>| application/xhtml-xml xhtml; |<br>| application/xslt-xml xsl; |<br>| application/zip zip; |<br>| text/css css; |<br>| text/csv csv; |<br>| text/html htm html shtml; |<br>| text/markdown md; |<br>| text/mathml mml; |<br>| text/plain txt; |<br>| text/vcard vcard vcf; |<br>| text/vnd.rim.location.xloc xloc; |<br>| text/vnd.sun.j2me.app-descriptor jad; |<br>| text/vnd.wap.wml wml; |<br>| text/vtt vtt; |<br>| text/x-component htc; | |
| **URL Resource Path** | These are additional paths appended to the end of the URL, divided by slashes. For example: http://demo.sepasoft.com/main/system/webdev/WebServicesAPI/getProductCodeList?filter=SA contains "/main", "/system", "/webdev", "/WebServicesAPI" and "/getProductCodeList" as resource paths.<br><br>URL Resource Path entities are created in the RESTful Configuration as shown to the right (they are appended in the order they are listed). |
| **URL Query String** | These follow any resource paths, and follow a question mark. They have a key and a value. Using the above example, **filter=SA** is a query string. They are appended to the end of the URL, after any appended URL Resource Path strings.<br><br>URL Query String entities are created in the RESTful Configuration as shown to the right (they are appended in the order they are listed). |
| **Request Body** | This section can be created to represent an XML- or JSON-format Request Body. The XML Request Body can include XML attributes, as shown in the example below.<br><br>![](/resources/Storage/user-manual/restful-configuration/RESTful%20%20Config%20-%20Request%20XML%20Body%20-%20example.PNG)<br><br>The above example is translated into the XML representation below and sent in the POST body to the remote web server:<br>
Code

```
<?xml version="1.0" encoding="UTF-8"?>
<root>
	<complexArray complexAttribute1="Hello" complexAttribute2="World">
		<simpleVal simpleValAttr1="1" simpleValAttr2="2">3</simpleVal>
	</complexArray>
</root>
```
 |

| Icon | Function | Description |
| --- | --- | --- |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Categorized-Alphabetic.png) | **Categorized / Alphabetic** | Determines how the rows in the Request Message area are sorted. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Show-Hide%20Description%20Area.png) | **Show/Hide Description Area** | Toggle to show or hide the Description Area underneath the main Request Message area. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Expand-Collapse.png) | **Expand / Collapse** | When sorted as 'Categorized', then Expand and Collapse work on the rows in each of the categories. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Add%20New%20Item.png) | **Add New Item** | When ***Add New Item*** is clicked, the following dialog box appears, to allow selecting the category of item to add.<br><br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-58-6.png) |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Edit%20Selected%20Item.png) | **Edit Selected Item** | When ***Edit Selected Item*** is clicked, a dialog box with the settings for the selected row will appear.<br><br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-58-26.png) |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Remove%20Selected%20Item.png) | **Remove Selected Item** | Removes the selected row. Note: There is no 'undo' function for this. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Move%20Selected%20Row%20One%20Up%20or%20Down.png) | **Move Selected Item One Row Up / Down** | Moves the selected row in the direction of the arrow clicked. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Copy%20Selected%20Row.png) | **Copy Selected Row** | Copies the selected row to a local clipboard (not the computer clipboard). This function applies only to the complex data type. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Paste%20Copied%20Row.png) | **Paste Copied Row** | Pastes the copied row in the local clipboard into the complex parameter. This function applies only to the complex data type. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Copy%20Sample%20Script.png) | **Copy Sample Script** | Copies the completed 'runWebService' scripting function required to run the RESTful Consumer to the computer clipboard (can be pasted anywhere).<br><br>Here is an example copied script pasted into the Script Console and executed. Note the returned Response Message on the right.<br><br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-59-25.png) |

### Description

Underneath the **Request Message** area is the **Description Area**. Click on a row in the **Request Message** area and information about the parameter in that row will be displayed.
 * * *
 ### Response Message

![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_14-59-57.png)

| Icon | Function | Description |
| --- | --- | --- |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Categorized-Alphabetic.png) | **Categorized / Alphabetic** | Determines how the rows in the Response Message area are sorted. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Show-Hide%20Description%20Area.png) | **Show/Hide Description Area** | Toggle to show or hide the Description Area underneath the main Response Message area. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Expand-Collapse.png) | **Expand / Collapse** | When sorted as 'Categorized', then Expand and Collapse work on the rows in each of the categories. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Add%20New%20Item.png) | **Add New Item** | When ***Add New Item*** is clicked, the following dialog box appears, to allow selecting the category of item to add. This function applies only to complex and array data types. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Edit%20Selected%20Item.png) | **Edit Selected Item** | When ***Edit Selected Item*** is clicked, a dialog box with the settings for the selected row will appear.<br><br>![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_15-1-19.png) |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Remove%20Selected%20Item.png) | **Remove Selected Item** | Removes the selected row. Note: There is no 'undo' function for this. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Move%20Selected%20Row%20One%20Up%20or%20Down.png) | **Move Selected Item One Row Up / Down** | Moves the selected row in the direction of the arrow clicked. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Copy%20Selected%20Row.png) | **Copy Selected Row** | Copies the selected row to a local clipboard (not the computer clipboard). This function applies only to the complex data type. |
| ![](/resources/Storage/user-manual/restful-configuration/RM%20Icons%20-%20Paste%20Copied%20Row.png) | **Paste Copied Row** | Pastes the copied row in the local clipboard into the complex parameter. This function applies only to the complex data type. |
| ![](/resources/Storage/user-manual/restful-configuration/RespM%20-%20Generate%20Response%20Body.png) | **Generate Response Body from JSON or XML** | If you already have a JSON or XML Response Message from the intended RESTful Provider, click this icon and then paste it into the popup dialog area. Click ***OK*** and it will be parsed to extract the **Response Conversion** rows required for the RESTful Consumer. The result will populate in the **Response Message** area. |
| ![](/resources/Storage/user-manual/restful-configuration/RespM%20-%20Run%20Web%20Service%20Configuration.png) | **Run Web Services Configuration** | If you do not have a JSON or XML Response Message from the intended RESTful Provider, click this icon and a live Request Message will be issued (with the provided default values appended in the URL Query String). Upon receiving the Response Message, it will be parsed to extract the **Response Conversion** rows and populate in the **Response Message** area.<br><br><br>
<br><br>| ![Note](/resources/Storage/user-manual/Note.png) | Make sure to click Save in Designer before clicking this Run Web Services Configuration button. |<br>| --- | --- | |

### Description

Underneath the **Response Message** area is the **Description Area**. Click on a row in the **Response Conversion** area and information about the parameter in that row will be displayed.
 The format of the **Web Service Response Message** can be set using the **Response Conversion** Item setting. Data types such as DateTime, Float4, Float8 has format options in a drop down menu, as shown.

![](/resources/Storage/user-manual/restful-configuration/image-2023-11-8_15-3-2.png)
 © Sepasoft. All rights reserved. 
 [Send feedback](mailto:support@clickhelp.com) on this topic to Sepasoft.