The Integration tab is where you define services for your application.
A service is an application component that represents the application interaction with the external data source. A service definition comprises the meta-data or the configurations required to exchange data with the external data source. For example, the configurations can be service type, service ID, input parameters, output parameters, preprocessors and postprocessors, target URL, authentication credentials if required, and type (HTTP/HTTPS).
The service definition enables the application to exchange data with any external data source. The Kony Fabric provides back-end for connecting to a Web service and an XML service. Even if the external data source does not expose the services to these well-known interfaces, the developer can build a Java service.
Menu path for integration service designer:



The Integration page displays the following sections for an endpoint:
| Number | Section | Description |
|---|---|---|
| 1 | Add | Allows you to add the following:
|
| 2 | Clone | Allows you to duplicate an existing service. Changes made to a cloned service will not impact the original service. |
| 3 | Sample Code | A dynamic code is generated based on the configuration of a service. You can use this code in your SDK. |
| 4 | Unlink | Allows you remove the service from the Integration services section of an app. When a service is unlinked, it is disassociated from a particular app. |
| 5 | Delete button | Allows you to delete a service. |
| 6 | Search button | Allows you to search services and operations in the Services section. |
| 7 | Services section | Configured services for an app. You can click the expand or collapse button of a service to show or hide operations in the services. |
| 8 | Show / Hide button | Allows you the show or hide the tree. When you hide the tree section, the right pane is used for service definition or operations details. |
| 9 | Service Definition tab | Allows you to configure service defection for an integration service. |
| 10 | Operations List tab | Allows you to configure operations for an integration service. |
Kony Fabric supports the following endpoints:
Salesforce is integrated with Kony Fabric portal, most of the details required for creating a service definition are automated. Whereas, for the remaining endpoints, you need to manually enter the details required for creating a service definition.
While configuring an integration service with basic auth mode, ensure that some reserved IDs are not used as input/header IDs. Key words such as userid, pwd and password are reserved by middleware when a user selects basic auth mode.
A service that communicates with an external data source using an XML endpoint over the HTTP protocol is known as an XML Service.
This section explains creation of an XML service for the following example:
To configure a XML service, follow these steps:
By default, XML is selected and the following section is displayed.


In the Client Authentication field, select an identity provider from the drop-down list. This drop-down list shows identity providers only if you have created identity providers for OAuth 2.0 in the Identity page.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
You can also display the NewOperation page. Follow these steps:
- Click the Operations List tab > CONFIGURE OPERATION.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.
While configuring an integration service with basic auth mode, ensure that some reserved IDs are not used as input/header IDs. Key words such as userid, pwd and password are reserved by middleware when a user selects basic auth mode.

Select the required method for the operation from the HTTP Methods field.
The Target URL field is prepopulated with the URL. You can add the suffix, if required.
For example, to the base URL, you can add suffix such as /latest or /sports to get latest news or sports news:
http://feeds.foxnews.com/foxnews/latest
http://feeds.foxnews.com/foxnews/sports
Configure the parameters for the preprocessor and postprocessor to filter the request and response objects for your business requirements. You can specify the Java class name or custom JavaScript code for preprocessor and postprocessor. Java class names contain the preprocessor and postprocessor.
For a sample Java class code, refer to Java Sample Code for Preprocessor and Postprocessor.
You need the middleware-system.jar for defining custom code.
- For On-premises Kony Fabric, you can find the jar within the installation folder <KonyFabricInstallDir>/middleware_home/ .
- For Cloud, contact Kony Cloud Support for getting the appropriate middleware-system.jar for your server version.
For details on Middleware APIs for preprocessor and postprocessor,
contact refer to http://docs.kony.com/konylibrary/integration/MiddlewareAPI/index.html
<serviceInputParams>, <request>, <response> and <result>.
You can use the objects and their corresponding methods directly in JavaScript code.
For a sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
The step allows you to further filter the data received from a service call.

Under the Pass-through Cookies, specify a comma separated list of cookie names. When cookies names are present in the incoming client request, these cookies are send to the backend target along with preprocessor request. A sample value looks like - cookie1, cookie2.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.

| ID | Path | CollectionID |
|---|---|---|
| channel | //channel | |
| Title | //item/title | channel |

User has the option to configure the default value. This default value is taken if the request does not have the header.
Request - Indicates that the value must be retrieved from the HTTP request received from a mobile device.

Based on the operation - for example, post or get -, provide custom HTTP headers.
To configure parameters in the client's header, do the following.
User has the option to configure the default value. This default value is taken if the request does not have the header.
You cannot edit the default value for expression.
To validate the details, click Fetch Response. The result of the operation appears.

To configure parameters in the response, enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format and format value.
To validate the details, click Test. The result of the operation appears.
When you enable Pass-through proxy flags, you will notice that you cannot configure request input, headers, and response out parameters for this operation.
To use an existing integration service, refer to How to Use an Existing Integration Service.
Use Case
To create the service definitions for an external data source providing SOAP interface, use the SOAP Service. You need to have a WSDL URL or file to create the service definition. For this example, we will use a WSDL URL of a weather application that has a GetCityWeatherByZip service and will provide appropriate configurations for the Service Definition.
To configure a SOAP service, follow these steps:
By default, XML is selected. If you select SOAP, the following section is displayed.


If you click Specify WSDL URL, the system displays URL text box. Enter the WSDL URL.
In case, if you are unable to read metadata from an integration service (for example, SOAP) that is protected by an SSL certificate, enable the integration service by following one of the ways:
- Download the WSDL file from the https WSDL URL and upload the WSDL file on Kony Fabric console.
- Importing the SSL into your cacerts in your Kony Fabric install location. For more details, refer to FAQs
In case, if you are unable to read metadata from an integration service (for example, SOAP) that is protected by an SSL certificate, enable the integration service by following:
- Download the WSDL file from the https WSDL URL and upload the WSDL file on Kony Fabric console.
If you click Upload WSDL File, the system allows you to upload the WSDL file. Click the Upload WSDL File button to navigate to the WSDL file from your local system, and then click Open. The system uploads your WSDL file.
In the Client Authentication field, select an identity provider from the drop-down list. This drop-down list shows identity providers only if you have created identity providers for OAuth 2.0 in the Identity page.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
You can also add operations by following these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.

Click ADD OPERATION.
While configuring an integration service with basic auth mode, ensure that some reserved IDs are not used as input/header IDs. Key words such as userid, pwd and password are reserved by middleware when a user selects basic auth mode.
For example, to the base URL, you can add suffix such as /latest or /sports to get latest news or sports news:
http://feeds.foxnews.com/foxnews/latesthttp://feeds.foxnews.com/foxnews/sportsConfigure the parameters for the preprocessor and postprocessor to filter the request and response objects for your business requirements. You can specify the Java class name or custom JavaScript code for preprocessor and postprocessor. Java class names contain the preprocessor and postprocessor.
For a sample Java class code, refer to Java Sample Code for Preprocessor and Postprocessor.
You need the middleware-system.jar for defining custom code.
- For On-premises Kony Fabric, you can find the jar within the installation folder <KonyFabricInstallDir>/middleware_home/ .
- For Cloud, contact Kony Cloud Support for getting the appropriate middleware-system.jar for your server version.
For details on Middleware APIs for preprocessor and postprocessor,
contact refer to http://docs.kony.com/konylibrary/integration/MiddlewareAPI/index.html
<serviceInputParams>, <request>, <response> and <result>.
You can use the objects and their corresponding methods directly in JavaScript code.
For a sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
The step allows you to further filter the data received from a service call.

Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.
Under the Body tab, do the following:

User has the option to configure the default value. This default value is taken if the request does not have the header.
Click the Header tab to provide the following customer headers:
Based on the operation - for example, post or get -, provide custom HTTP headers. To provide customer headers, click Header.

User has the option to configure the default value. This default value is taken if the request does not have the header.
You cannot edit the default value for expression.
To validate the details, click Fetch Response. The result of the operation appears.
Click the Response Output tab to configure the fields of the table for displaying the data:

To configure parameters in the response, enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format and format value.
| ID | Path |
|---|---|
| State | //GetCityWeatherByZIPResponse/GetCityWeatherByZIPResult /State |
| City | //GetCityWeatherByZIPResponse/GetCityWeatherByZIPResult /City |
| Temperature | //GetCityWeatherByZIPResponse/GetCityWeatherByZIPResult / |
| Humidity | //GetCityWeatherByZIPResponse/GetCityWeatherByZIPResult /RelativeHumidity |
| Wind | //GetCityWeatherByZIPResponse/GetCityWeatherByZIPResult /Wind |
To validate the details, click Test. The result of the operation appears.
When you enable Pass-through proxy flags, you will notice that you cannot configure request input, headers, and response out parameters for this operation.
Click SAVE OPERATION to save the changes. To use an existing integration service, refer to How to Use an Existing Integration Service.
A service that communicates with an external data source using JSON over the HTTP protocol, and returns a response in JSON format is known as a JSON Service. You can use the JSON services in any case where you would use an XML service. But, the response of a JSON service is in a JSON format.
Notations
| Element | Description |
|---|---|
| elementname | Selects all child elements of the named Element. |
| // | Selects elements in the document from the current element that match the selection no matter where they are. |
| Path Expression | Result |
|---|---|
| bookstore (or) /bookstore | Selects all the child elements of the bookstore element |
| bookstore/book | Selects all book elements that are children of bookstore |
| //book | Selects all book elements no matter where they are in the JSON string |
| bookstore//book | Selects all book elements that are descendant of the bookstore element, no matter where they are under the bookstore element |
Predicates are used to find a specific element or an element that contains a specific value. Predicates are always embedded in square brackets.
| Path Expression | Result |
|---|---|
| bookstore/book[1] | Selects the first book element that is the child of the bookstore element |
| bookstore/book[last()] | Selects the last book element that is the child of the bookstore element |
| bookstore/book[last()-1] | Selects the last but one book element that is the child of the bookstore element |
| bookstore/book[position()<3] | Selects the first two book elements that are children of the bookstore element |
| bookstore/book[price>35.00] | Selects all the book elements of the bookstore element that have a price element with a value greater than 35.00 |
| bookstore/book[price>35.00]/title | Selects all the title elements of the book elements of the bookstore element that have a price element with a value greater than 35.00 |
| Operator | Description | Example | Result |
|---|---|---|---|
| > | Greater than | price>9.80 |
|
| >= | Greater than or equal to | price>=9.80 |
|
| < | Less than | price<9.80 |
|
| != | Not equal | price!=9.80 |
|
| = | Equal | price=9.80 |
|
To configure a JSON service, follow these steps:


Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
You can also display the NewOperation page. Follow these steps:
- Click the Operations List tab > CONFIGURE OPERATION.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.
While configuring an integration service with basic auth mode, ensure that some reserved IDs are not used as input/header IDs. Key words such as userid, pwd and password are reserved by middleware when a user selects basic auth mode.

Select the required method for the operation from the HTTP Methods field.
The Target URL field is prepopulated with the URL. You can add the suffix, if required.
For example, to the base URL, you can add suffix such as /latest or /sports to get latest news or sports news:
http://feeds.foxnews.com/foxnews/latesthttp://feeds.foxnews.com/foxnews/sportsConfigure the parameters for the preprocessor and postprocessor to filter the request and response objects for your business requirements. You can specify the Java class name or custom JavaScript code for preprocessor and postprocessor. Java class names contain the preprocessor and postprocessor.
For a sample Java class code, refer to Java Sample Code for Preprocessor and Postprocessor.
You need the middleware-system.jar for defining custom code.
- For On-premises Kony Fabric, you can find the jar within the installation folder <KonyFabricInstallDir>/middleware_home/ .
- For Cloud, contact Kony Cloud Support for getting the appropriate middleware-system.jar for your server version.
For details on Middleware APIs for preprocessor and postprocessor,
contact refer to http://docs.kony.com/konylibrary/integration/MiddlewareAPI/index.html
<serviceInputParams>, <request>, <response> and <result>.
You can use the objects and their corresponding methods directly in JavaScript code.
For a sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
The step allows you to further filter the data received from a service call.

Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.

User has the option to configure the default value. This default value is taken if the request does not have the header.

User has the option to configure the default value. This default value is taken if the request does not have the header.
You cannot edit the default value for expression.
DESCRIPTION: Enter a proper description.
To validate the details, click Fetch Response. The result of the operation appears.

To configure parameters in the response, enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format and format value.
Enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format and format value.
| ID | Path |
|---|---|
| city | //current_observation/display_location/city |
| latitude | //current_observation/display_location/latitude |
| longitude | //current_observation/display_location/longitude |
| temperature | //current_observation/temp_c |
| relative_humidity | //current_observation/relative_humidity |
| windspeed | //current_observation/wind_string |
| icon | //current_observation/icon |
| icon_url | //current_observation/icon_url |
| forecast_url | //current_observation/forecast_url |
To validate the details, click Test. The result of the operation appears.
When you enable Pass-through proxy flags, you will notice that you cannot configure request input, headers, and response out parameters for this operation.
Click SAVE OPERATION to save the changes.
To use an existing integration service, refer to How to Use an Existing Integration Service.
To add a service definition, follow these steps:
Applicable to SOAP endpoint only.




With Java service, you can interact with your software application that does not support restful APIs. A service that uses a custom Java connector is a Java service. The Java connector is a custom Java class and you can create a Java connector either by implementing com.konylabs.middleware.common.JavaService interface or com.konylabs.middleware.common.JavaService2 interface. Kony recommends to use JavaService2 as you can get an access to DataControllerRequest and DataControllerResponse objects.
You must load the required JAR files to define a Java service. The JAR files contain the Java classes. The Java classes contain the Java methods. These methods have the logic defined that is required for a service. Java services are mostly used with Webconnector Services.
The middleware-system.jar helps you to develop a Java connector. You can download the middleware-system.jar from Admin Console's download page.
The data structure of the Kony Result object The use of JSON Arrays is particularly important for the mapping of data in user interface segments that require arrays as data input. The following code details sample original JSON data, data converted to Kony Object, and in the result - data converted only limited unnamed records into an object in Kony Fabric (loss of data).(com.konylabs.middleware.datamapping.Result) shows that all the data is converted, but the complete data in the Kony Result object in not exposed as expected. You get a part of the data in Kony Fabric because only a few unnamed records are converted into an object instead of an array.
//Sample: Original JSON Data:
{"booking":[
{"amount":-254.6,"description":"Paiement carte BIM STORES PALMIER le 21/02/2016 à 18:54","doc_id":17150820,"value_date":"2016-02-19","temporary":false,"date":"2016-02-21"},{"amount":-44.26,"description":"Paiement internet LYDEC ECOM le 19/02/2016 à 13:04","doc_id":17146660,"value_date":"2016-02-18","temporary":false,"date":"2016-02-19"},{"amount":-37.26,"description":"Paiement internet LYDEC ECOM le 19/02/2016 à 13:19","doc_id":17146835,"value_date":"2016-02-18","temporary":false,"date":"2016-02-19"},{"amount":-14.34,"description":"Paiement internet LYDEC ECOM le 19/02/2016 à 13:11","doc_id":17146744,"value_date":"2016-02-18","temporary":false,"date":"2016-02-19"}
]}
Sample: Data converted to KONY Object:
Dataset [id=booking, index=-1,
records=[
Record [index=-1, order=0, id=,
params=[
Param [name=amount, value=-254.6],
Param [name=description, value=Paiement carte BIM STORES PALMIER le 21/02/2016 à 18:54],
Param [name=doc_id, value=17150820],
Param [name=value_date, value=2016-02-19],
Param [name=temporary, value=false],
Param [name=date, value=2016-02-21]
], datasets=[], records=[]
], Record [index=-1, order=0, id=,
params=[
Param [name=amount, value=-44.26],
Param [name=description, value=Paiement internet LYDEC ECOM le 19/02/2016 à 13:04],
Param [name=doc_id, value=17146660],
Param [name=value_date, value=2016-02-18],
Param [name=temporary, value=false],
Param [name=date, value=2016-02-19]
], datasets=[], records=[]
],
//Sample: Data converted only limited unnamed records into an object in Kony Fabric:
"booking": {
"": {
"date": "2016-02-21",
"temporary": "false",
"amount": "-254.6",
"description": "Paiement carte BIM STORES PALMIER le 21/02/2016 à 18:54",
"doc_id": "17150820",
"value_date": "2016-02-19"
}
}
To write a Java class for a Java connector, follow these steps:
com.konylabs.middleware.common.JavaService interface or com.konylabs.middleware.common.JavaService2 interface.com.konylabs.middleware.common.JavaService, you have to implement the following invoke() method with the signature:public Object invoke(String paramString, Object[] paramArrayOfObject) throws Exception;
com.konylabs.middleware.common.JavaService2, you have to implement the following invoke() method with the signature:public Object invoke(String methodID, Object[] objectArray, DataControllerRequest request, DataControllerResponse response) throws Exception;
Adding a Java service involves the following steps:
To configure your Java connector, follow these steps:
From the Service Type drop-down list, select JAVA.
The system allows you to select and upload only one JAR file at Specify Java Connector Jar. The main JAR file contains Kony middleware java services.
You can delete an uploaded JAR file by clicking the Delete button.
To upload an updated JAR file, upload the new file, which must have the same name as the old JAR file. The new JAR file overrides the existing file.
You can remove an existing dependent JAR file from the console. Click the Unlink button. The system displays the Unlink JAR confirmation message window. Click confirm. The JAR file is removed from the Specify Dependent Jar section.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
You can also add operations by following these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.
Click ADD OPERATION to display the Operation Modal tab.
In the Operation Modal tab, follow these steps:
This tab contains the request input, response output, and advanced sections. The input values are data types, scope, and format types. By default, the system will display the Request Input tab.
You can add an entry by clicking the Add button if entries for the input and the output tabs do not exist.
You can also delete an entry. Select the check box for an entry, and then click the Delete button.
Configure the parameters for the preprocessor and postprocessor to filter the request and response objects for your business requirements. You can specify the Java class name or custom JavaScript code for preprocessor and postprocessor. Java class names contain the preprocessor and postprocessor.
For a sample Java class code, refer to Java Sample Code for Preprocessor and Postprocessor.
You need the middleware-system.jar for defining custom code.
- For On-premises Kony Fabric, you can find the jar within the installation folder <KonyFabricInstallDir>/middleware_home/ .
- For Cloud, contact Kony Cloud Support for getting the appropriate middleware-system.jar for your server version.
For details on Middleware APIs for preprocessor and postprocessor,
contact refer to http://docs.kony.com/konylibrary/integration/MiddlewareAPI/index.html
<serviceInputParams>, <request>, <response> and <result>.
You can use the objects and their corresponding methods directly in JavaScript code.
For a sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
The step allows you to further filter the data received from a service call.

Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.
Select request or session in the Scope field. By default, this field is set to Request.
In Java service, the response (output) from a backend is not parsed based on the response values. The complete response from the backend is sent to the client device.
By default, the opStatus and httpStatusCode values for Java and JavaScript services are added as 0 and 200.

If datatype is string, then the options in the Format Type are Currency, Number and Date.
If the datatype is number, then the options in the Format Type are Currency and Date.
If the datatype is boolean, then the options in the Format Type and Format Value text box are disabled.
java.text.DecimalFormat.java.text.DecimalFormat.java.text.SimpleDateFormat.If you click Cancel, the Edit Service Parameters window will close without saving any information.
To add more operations for your Java service, repeat Step 3 through Step 4.
To create a collection data type, follow these steps:

A row appears under Collection1.
If you select the check box for Collection, you can add more records under a collection.

Ensure that you have selected the check box for a Collection or Record before adding a row under it.

A row appears under Record1.

If you select the check box for Record, you can add parameters under a record.
If you want to edit an existing Java service, you can edit details such as service name, JAR files, operation modal details. While editing a Java service, you can change the Java service type. A Java service must be available in the Integration home screen. To add an existing Integration service, refer to Use an Existing Service.
To edit an existing Java service, follow these steps:
The operation details are displayed in the Edit Service Parameters dialog.

With the JavaScript Connector service, you can integrate plain JavaScript services to applications in Kony Fabric.
You can upload custom JavaScript files to Kony Fabric. Using JavaScript connectors, you can easily create server-side code and make it available as operations. The JavaScript file must contain functions that a user wants to be made available as operations, along with other supporting functions. You can also add preprocessor and postprocessor to the operations defined. For more details on the structure for JavaScript function definitions, refer to the Limitations section.
For more details about the sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
Based on the JDK version supported by Kony Fabric Installer, the JavaScript Connector uses the following JavaScript engines:
To configure a JavaScript connector, follow these steps:
From the Service Type drop-down list, select JavaScript.
From the Versions drop-down list, select the required version. You can select only one version of the service.
The system allows you to upload more than one JS file at Specify the Javascript libraries.
Once uploaded, JavaScript files are available across Kony Fabric console. They cannot be deleted, only unlinked. You can unlink uploaded .JS files by clicking the Unlink button.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
You can also add operations by following these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.
Click ADD OPERATION to create operations with the selected functions.
The new operations are created and listed under the Configured Operations.
Operations name are auto-generated in the format : <Name-of-the-JS-file>_<function-name>. For example, sample_addTwoNumbers
Click the operation. In the Operation Modal tab, follow these steps:
The tab contains the request input, response output, and advanced sections. The input values are data types, scope, and format types. By default, the system will display the Request Input tab.
You can add an entry by clicking the Add button if entries for the input and the output tabs do not exist.
You can also delete an entry. Select the check box for an entry, and then click the Delete button.
Configure the parameters for the preprocessor and postprocessor to filter the request and response objects for your business requirements. You can only specify custom JavaScript code for preprocessor and postprocessor.
<serviceInputParams>, <request>, <response> and <result>.
You can use these objects and their corresponding methods directly in JavaScript code.
For a sample JavaScript code, refer to JavaScript Sample Code for Preprocessor and Postprocessor.
The step allows you to further filter the data received from a service call.


Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.
Select request or session in the Scope field. By default, the field is set to Request.
In JavaScript service, the response (output) from a back end is not parsed based on the response values. The complete response from the back end is sent to the client device.
By default, the opStatus and httpStatusCode values for Java and JavaScript services are added as 0 and 200.
The Response Output tab is not honored in JavaScript Connector.

To configure parameters in the response, enter the values for required fields such as name, scope, path, data type, collection ID, record ID, format and format value.
java.text.DecimalFormat.java.text.DecimalFormat.java.text.SimpleDateFormat.You can test a JS service operation from Kony Fabric. To test JS service operation, do the following:
If you click Cancel, the Operation Modal tab will close without saving any information.
To add more operations for your JavaScript service, repeat Step 3 through Step 4.
The JavaScript Engine does not support some common JavaScript libraries and global JavaScript functions such as jQuery, setTimeout, setInterval or XMLHttpRequest. However, it provides an alternate mechanism to perform the same operation. You can invoke the required functionality using Java for such cases. For example, consider the XMLHttpRequest API. Since Nashorn does not support this API, you will need to use Java to perform the required operations. You can use URLConnection java class or HttpClient API to achieve the same goal.
function abc() { … }With Kony Fabric database connector, you can connect to your own database as an endpoint. After you configure the database connector in Kony Fabric Console, you can perform create, read, update, and delete (CRUD) operations on data in the tables.
For example, banks maintain a store of users and their details. With Kony Fabric database connector, banks can connect to their own databases and manage customers data.
Advantages of Kony Fabric Database connector:
Limitations of Kony Fabric Database connector:
<Update> operation for Table1 and Table2.Binary Support is not available in RDBMS DataAdapter.
Kony supports four ODATA commands for the read operation such as $filter, $orderby, $top, and $skip .
Open Data Protocol (OData) is an open protocol to allow the creation and consumption of queryable and interoperable RESTful APIs in a simple and standard way. For more details, refer to http://www.odata.org/
Adding a database service involves the following steps:

jdbc:mysql://<ip_address>[:<port>]Databased with proxy are supported in
To test your database connection details, click Test Connection. If the entered details are correct, the system displays the message: Valid Database connection details.
In the Description, enter the appropriate description about the service.
For on-premises, proxy support is not available for database service.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
You can also display the Operations List tab. Follow these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:

If you select Stored Procedures, you can select available stored procedures from the Object drop-down.
While adding operations to a database integration service, Kony Fabric allows you to select CRUD operations only for table and view object types.
From the Operations drop-down list, select the required check boxes for CRUD operations for tables or views. You can select one or more CRUD operations.

Operation names are auto-generated in the format. The default name format of a database operation is <schema_name>_<table_name>_<operations>. You can change the operation name if required.
For example, RdbmsDetails_CustomerDetails_create.

When an admin creates CRUD operations for a database connector, the admin is under a particular schema. To customize fields, refer to How to Configure CRUD Operations for Database Service.
Once you create CRUD operations for database service, you can configure CRUD operations as follows:
To edit an operation, you can also click the operation from the service tree pane, shown below.

The system displays the selected operation in the edit mode. The create operation has the Request Input tab.

You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste. 
- To delete an entry, select the check box for an entry, and then click the Delete button.
The Name field is prepopulated with fields names of the selected database. You can edit this field.
The Action field is prepopulated with operation names of the selected database. You cannot edit this field.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
The default data type for the selected column is loaded under the DATATYPE field.
To validate the details, click Fetch Response. The result of the operation appears.
The system displays the selected operation in the edit mode. The Read operation has the Request Input and Response Output tabs.

You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
In the read operation, the Name drop-down list contains a Select option that acts as a label for the list. Select itself is not a command.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste. 
- To delete an entry, select the check box for an entry, and then click the Delete button.
In the Request Input, configure the following ODATA commands to filter the data:
The NAME field in the Request Input is prepopulated with ODATA commands.
For example (sample employee table), shown below:
| Command Name | Test value for the command | Result |
|---|---|---|
| $filter | emp_Id ge 30 | Filters and displays data in the table based on age of employes who are older than 30. |
| $orderby | emp_Age | Arranges data in the table based on employees' age. |
| $top | 5 | Displays top five records in the table. |
| $skip | 5 | Displays all records in the table except top five records. |
For example (sample configuration for ODATA commands), shown below:

To validate the details, click Fetch Response. The result of the operation appears.
Click SAVE OPERATION to save the changes in the read operation.

The Name field in the Response Output tab is prepopulated with database columns.
To validate the details, click Test. The result of the operation appears.
The system displays the selected operation in the edit mode. The update operation has the Request Input tab.

The NAME field contains primary key of the table. You cannot modify these details.
The Name column is prepopulated with fields names in the database.
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste. 
- To delete an entry, select the check box for an entry, and then click the Delete button.
To validate the details, click Fetch Response. The result of the operation appears.
Click SAVE OPERATION to save the changes in the update operation.
The system displays the selected operation in the edit mode. The delete operation has the Request Input tab.

The NAME field contains the primary key of the table. You cannot modify these details. The Request Input tab contains only the primary key of the table.
Click Fetch Response to validate the details. If the test value matches the primary key in the database, the system deletes the record from the database.
Click SAVE OPERATION to save the changes in the delete operation.
With Kony Fabric API Proxy (pass-through proxy) integration service, you can forward the request and response without intermediate transformation (without affecting the actual request and response.)
For example:
When a back end returns the response with a huge data, and if there is no API Proxy enabled with the service, Kony Fabric converts the back end response to a JSON format before forwarding the response to a device. Users can use the API Proxy service that forwards a back end response in the original back end format to a device. By enabling API Proxy, the input (body and headers) of a client's input request is forwarded to the back end and the output response from the back end is forwarded to the device with no changes in the input request and output response.
You can configure API Proxy integration service for the following endpoints:
XML
To configure API Proxy integration service for XML or JSON endpoints, follow these steps:
APIProxyService.Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
You can also display the NewOperation page. Follow these steps:
- Click the Operations List tab > CONFIGURE OPERATION.
- From the tree in the left pane, click Add > Add New Operation, shown below:

To use an existing integration service, refer to How to Use an Existing Integration Service.
The Target URL field is prepopulated with the URL that you provided at the Base URL field. You can add the suffix, if required.
For example, to the base URL, you can add suffix such as /latest or /sports to get latest news or sports news:
http://feeds.foxnews.com/foxnews/latesthttp://feeds.foxnews.com/foxnews/sportsUsing API proxy integration service not supported by default.
To enable MBaaS client SDK with API proxy integration service, a developer must write a foreign function interface (FFI) file to package the payload and send it out in the correct format (SDK only supports form-url-encoded data)
With API Proxy integration service is used, the client side metrics are not supported.
You can also configure the following pass-through proxy flags in operations for connectors such as XML, SOAP, and JSON:
AWS API Gateway is a new data adapter of Kony Fabric integration services. With Kony Fabric AWS API Gateway integration service, you can connect to the services configured and deployed under API Gateway Service in Amazon Web Services.
Kony Fabric AWS API Gateway supports the following integration types of Amazon API Gateway:
Kony Fabric supports AWS API Gateway services, which returns JSON response.
Adding an AWS API Gateway service involves the following steps:
To configure AWS API Gateway integration service, follow these steps:
AWSDataAdapter.In the AWS URL, the system displays the AWS API gateway URL for the selected region. You cannot modify these details.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
To test your AWS connection details, click Test Connection. If the entered details are correct, the system displays the message: Valid Gateway address and port.
You can also display the NewOperation page. Follow these steps:
- Click the Operations List tab > CONFIGURE OPERATION.
- From the tree in the left pane, click Add > Add New Operation, shown below.

To use an existing integration service, refer to How to Use an Existing Integration Service.

Operation names are auto-generated in the format. The default name format of a AWS API operation is <method_name><api_name><resource_name>. You can change the operation name if required.
Once you create operations for an AWS API Gateway service, you can configure operations as follows:
The Name field is prepopulated with operation names. You can edit this field if required.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.
In the Body tab > NAME filed, the input parameters are prepopulated.
The default data type for the selected column is loaded under the DATATYPE field.
Enter the values for required fields such collection ID and record ID.
To provide customer headers, click Header.
If AWS APIs with API Key Required is set to "true", the api key needs to be sent as request header as x-api-key.
The option helps a user to configure the default value. The default value is taken if the request does not have the header.
You cannot edit the default value for the expression.
TEST VALUE: Enter a value. A test value is used for testing the service.
To validate the details, click Fetch Response. The result of the operation appears.

The Name field in the Response Output tab is prepopulated with properties of the output API.
Enter the values for required fields such as name, scope, data type, collection ID, record ID, format and format value.
To validate the details, click Test. The result of the operation appears.
To configure your Salesforce service, follow these steps:


To configure Use Existing Identity Provider, fill in the details for the following fields:
screen
The details for the selected identity are displayed in the Endpoint URL text box. You cannot modify these details.
To configure Specify Log-in Endpoint, fill in the details for the following fields:
screen
In the Endpoint URL, enter the URL - for example, https://login.salesforce.com/services/oauth2/token.
In the Client ID text box, enter a valid client id.
In the Client Secret text box, enter a valid client secret.
In the User ID text box, enter a valid user ID.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
Based on your Salesforce authentication, the system loads all tables such as objects and operations.

If you provide incorrect Salesforce endpoint details, the Object list will contain only _Login object.


The operation details are displayed.

In the Operation Path text box, modify the path if required.
You can add an entry by clicking the Add button if entries for the input and the advanced tabs do not exist. You can also delete an existing entry by clicking the Delete button.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste.
- To delete an entry, select the check box for an entry, and then click the Delete button.
To use an existing integration service, refer to How to Use an Existing Integration Service.
If the service is using a log-in endpoint, ensure that you specify the same set of credentials (Client ID, Client Secret, User ID, Password) for design time and run-time.
Because if the log-in endpoint credentials are different for design time and run-time, the system throws an error while accessing a service from an app.
Error 401: Request Unsuccessful Server responded with 401.
If you want to use log-in endpoint with different credentials for design time and run-time, then parametrize instance URL in the operation path, and send that URL from an app.
For example:
To parametrize an instance URL, follow these steps:
- In the login operation, click Output tab, and make the changes, shown below:

ID Path Scope Authorization concat(//OAuth/token_type," ",//OAuth/access_token session instanceURL //OAuth/instance_url session
- Click Test to view the results.
- Click Save Operation to save the above changes.
- In the getContact operation, make the following changes:
- In the Operation Path text box, change the URL, for example, from
https://ap1.salesforce.com/ to $<instanceURL>/.
- In the Input tab, configure the following fields, shown below:
ID Path Scope Encode queryString Select ID from contact session instanceURL //OAuth/instance_url session No
- Click Test. The contacts are fetched from the Salesforce.
- Click Save Operation.
How to Configure Kony SAP Gateway
With Kony Fabric, you can access external Kony SAP services by using the Kony SAP Gateway connector. Based on your Kony SAP Gateway authentication, you can use Kony SAP libraries and objects along with the supported HTTP methods in your app.
Adding a Kony SAP Gateway service involves the following steps:
To configure your Kony SAP Gateway, follow these steps:


To configure Use Existing Identity Provider, fill in the details for the following fields:

The details for the selected identity are displayed in the Gateway address & port text box. You cannot modify these details.
To configure Specify Log-in Endpoint, fill in the details for the following fields:

In the Gateway address, enter the domain - for example, connect.kony.com.
In the Port text box, enter a valid port number ranging from 1 to 65535.
In the Header parameter name prefix * text box, enter the header - for example, KonySAP.
Under the User ID and Password, provide valid log-in credentials that you created while registering with Kony SAP Gateway services.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
Based on your Kony SAP Gateway authentication, the system loads all tables such as libraries and objects along with supported HTTP methods.

You can also add operations by following these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:


To configure more operations for your Kony SAP Gateway integration service, repeat Steps a through b. You can select a new library and object, and supported operations.

The operation details are displayed.

Select the HTTP Methods.
You can add an entry by clicking the Add button if entries for the input and the advanced tabs do not exist. You can also delete an existing entry by clicking the Delete button.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
Use the SAP backend syntax to get the expected results. For more details, refer to http://docs.kony.com/konyforsap/
For example: Parameter name as filters and the test value $filter=<actual filters>

Request - indicates that the value must be retrieved from the HTTP request received from the mobile device.
Session - indicates that the value must be retrieved from the HTTP session stored on Kony Fabric.
Boolean - a value that can be true or false.
Number - an integer or a floating number.
Collection - a group of data, also referred to as data set.
Click the Header tab to provide the following customer headers. Based on the operation - for example, post or get - provide custom HTTP headers. Custom HTTP headers required by the external data source, shown below:
ID: The rows are created based on the selected operation. Change the value if required.
To validate the details, click Fetch Response. The result of the operation appears.
For example, the schema includes elements for the configured tables, such as, table name, description, library name, group name, URL, methods.


To validate the details, click Test. The result of the operation appears.

If you want to edit an existing Kony SAP service, you can edit details such as service name, authentication service information, operations.
Each operation contains four tabs, including input, attributes, output, and advanced. If you want to test an existing operation for Kony SAP service - for example, get or put - enter necessary test values in the input and the advanced tabs. The results are displayed in the JSON format. The input values can be data types, test values, and session keys.
To edit or test an existing Kony SAP integration service, follow these steps:
MuleSoft (Anypoint Platform™) is a platform that helps app developers to design custom APIs and deploy to a Mule Enterprise Service Bus runtime (ESB). With MuleSoft integration service in Kony Fabric, developers can interact with more than 50 types of connectors.
To integrate a MuleSoft service in Kony Fabric, developers need to create a project in MuleSoft Studio, export the project to a local system, and then deploy it to Cloud Hub. On top of the project deployment, a RESTful API modeling language (RAML) file needs to be built, which defines all the API definitions in the project. A RAML file also contains the defined schemas with properties. When a user creates a project from AnyPoint API Studio with any connector and builds a RAML file over the project, all the APIs can be used in Kony Fabric integration service. When a Kony Fabric user selects a MuleSoft connector from Kony Fabric Console, based on the cloud hub portal credentials of the MuleSoft connector, the system retrieves metadata from a RAML file and displays all APIs of a RAML file. Developers can add these APIs as operations in MuleSoft integration service in Kony Fabric Console.
Kony Fabric discovers the MuleSoft endpoints through a RAML file. Kony Fabric parses a RAML file and exposes all the MuleSoft endpoints through the integration service. Mobile app developers can use the configured MuleSoft integration service and access the backend systems supported by MuleSoft’s connectors.
Kony Fabric Console will process those projects created from AnyPoint Studio (MuleSoft) that are associated with RAML files.
Project created from AnyPoint Studio (MuleSoft) will not be consumed by portal if it does not use RAML file. Only MuleSoft projects created in the above specified manner using RAML files are supported in Kony Fabric Console.
In Kony Fabric Console, you can provide login credentials of MuleSoft or upload a RAML file to configure an integration service.
Advantagesof Kony Fabric database connector:
Limitations of Kony Fabric MuleSoft connector:
Prerequisites
Adding a MuleSoft service involves the following steps:


Under Choose API Discovery Type, click one of the following modes:
To upload a RAML File, follow these steps:
To use AnyPoint Platform URL, follow these steps:
Under the User ID and Password, provide valid log-in credentials that you created while registering with MuleSoft AnyPoint Platform.
To test your database connection details, click Test Connection. If the entered details are correct, the system displays the message: Valid MuleSoft connection details.
For on-premises, proxy support is not available for MuleSoft service.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
In the Total Rate Limit text box, enter a required value. With this value, you can limit the number of requests configured in your Kony Fabric console in terms of Total Rate Limit.
To override throttling, refer to Override API Throttling Configuration.
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
To use an existing integration service, refer to How to Use an Existing Integration Service.
You can also display the Operations List tab. Follow these steps:
- Click the Operations List tab.
- From the tree in the left pane, click Add > Add New Operation, shown below:


Based on the selected groups, the Versions drop-down list is loaded with the versions of the RAML file.
The system creates a JSON service for the MuleSoft service.
Operation names are auto-generated in the format. The default name format of a MuleSoft operation is <operation_name><resource_name>. You can change the operation name if required.
For example, postfolder.

Once you create operations for MuleSoft service, you can configure the operations such as adding parameters, adding test values, and fetching the response.
To edit an operation, you can also click the operation from the service tree pane, shown below:

The system displays the selected operation in the edit mode.

The Name field is prepopulated with operation names. You can edit this field if required.
The Operation Path field is prepopulated with MuleSoft URL. You can edit this field if required.
Integration services accept only form-url-encoded inputs for all input parameters provided in service input parameters (request input).
You can add an entry by clicking the Add Parameter button if entries for the input and the output tabs do not exist.
- To make duplicate entries, select the check box for the entry, click Copy, and then click Paste. 
- To delete an entry, select the check box for an entry, and then click the Delete button.
In the Body tab > NAME filed, the input parameters are prepopulated based on the properties of the input schema of a RAML file.
The default data type for the selected column is loaded under the DATATYPE field.
To validate the details, click Fetch Response. The result of the operation appears.

The Name field in the Response Output tab is prepopulated with properties of output schema of a RAML file.
Enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format and format value.
To validate the details, click Test. The result of the operation appears.
To integrate a RAML service in Kony Fabric, a RAML file or Zip (with all dependent files) must be created, which defines all the API definitions and schemas with properties in the project. When a Kony Fabric user creates a service from Kony Fabric Console, the system retrieves metadata from a RAML file and displays all APIs of a RAML file.
Kony Fabric parses a RAML file and exposes all the endpoints through the integration service.
In the integration service definition tab, follow these steps:
If you select RAML, the below details are displayed

The system adds your main RAML file to the console. The system displays the added RAML file's name under the Connection Parameters section.
Select the JAR containing preprocessor or postprocessor libraries from the drop-down list, or click Upload New to browse the JAR file from your local system. The step allows you to further filter the data sent to the back end:
Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration.
For example, if the JDK version on the machine where Kony Fabric Integration is installed is 1.6, you must use the same JDK version to build your custom jar files. If the JDK version is different, an unsupported class version error will appear when a service is used from a device.
To specify throttling, follow these steps:
Enable API throttling in a clustered environment by configuring the KONY_SERVER_NUMBER_OF_NODES property in the server_configuration table available in Admin database. This property indicates the number of nodes configured in the cluster. The default value is 1.
To enable the proxy, select the Use proxy from settings check box. By default, the check box is cleared.
The Use proxy from settings check box dims when no proxy is configured under the Settings > Proxy.
Click SAVE to save your service definition. The system displays the success message: Service Saved Successfully.
The Operations List tab appears only after the Service Definition is saved. The ADD OPERATION button in the Service Definition page is active only after you click the SAVE button.

The operation details are displayed.
Input and Output must be defined in the RAML file only.
Currently the date datatype is not supported.
Click SAVE OPERATION.
Swagger is a powerful open API specification framework backed by a large ecosystem of tools that helps you design, build, document, and consume your RESTful APIs.
To configure a Swagger service in Kony Fabric, a JSON or YAML file(s) (with all dependent swagger files or a single specification file) must be created which defines all the APIs and schemas. When a swagger service is created, and configured, the system retrieves the meta data from the imported single or the dependent JSON or YAML file(s) and displays the APIs of that file.
Kony Fabric parses the JSON or YAML file(s) and exposes all the endpoints through the integration service.
To configure swagger in Integration service, follow these steps:
Click CONFIGURE NEW to configure a new service definition in Integration.
On selecting the Service Type as Swagger, the following fields are displayed.
In the Connection Parameters section, click Upload to upload a JSON or YAML file(s) with swagger specifications.
The system imports the JSON or YAML file and displays the added file name under the connection parameters section.
If required, select an identity provider from the Authentication list to link your service.
Under the Web Service Authentication, select one of the following modes:
Basic: Provide User ID and Password if the external Web service requires form or basic authentication.
NTLM: Your service follows the NT LAN Manager authentication process. You are required to provide the User ID, Password, NTLM Host and NTLM Domain.
Click the Advanced link to specify dependent JAR and API throttling. For detailed information, refer to Advanced tab.
Click SAVE to save your service definition. The system displays the success message: Service Saved Successfully.
The Operations List tab appears only after the Service Definition is saved. The ADD OPERATION button in the Service Definition page is active only after you click the SAVE button.
To create operations for the created service definition, follow these steps:
Click ADD OPERATION in Service Definition tab to display the Operations List tab for adding operations.
Under Operations List tab, expand the Please Select drop down list. Based on the uploaded JSON or YAML file, all the supported operations will be displayed.


The operation details are displayed.

Select one of the following security operations in the Operation Security Level field. By default, the field is set to Authenticated App User. For more details, refer to Security Level.
Click the Advanced tab to configure the preprocessor and postprocessor for Java and JavaScript. All options in the Advanced section are optional. For more details, refer to Preprocessor and Postprocessor.
The NAME field contains a unique identifier for a parameter. Change the identifier, if required.
The TEST VALUE field contains a value to be used to test the service. Change the syntax, if required.
In the DEFAULT VALUE field, change the syntax, if required.
In the SCOPE, select request or session in the Scope field. By default, this field is set to Request.
Request indicates that the value must be retrieved from the HTTP request received from the mobile device.
Session indicates that the value must be retrieved from the HTTP session stored on Kony Fabric.
Currently the date datatype is not supported.
Click the Response Output tab to view the output test values, such as name, scope, data type.
To validate the details, select an environment from the Select Environment list and click Save and Test. The result of the operation appears..
Click SAVE OPERATION.
Following are few limitations to be followed before using Swagger:
Only Swagger 2.0 is supported.
For nested payloads, you cannot test the service from Admin Console in the case of Post/Put. You can only send a request through Admin Console or postman.
For any operation in Swagger the binary data is not supported.
If any scheme is not specified in your swagger file, by default HTTPS will be considered.
If an authentication is linked to your swagger file, you must define it at each operation level under security tag.
You can save an integration service to a new version. Saving a new version of an integration service unlinks the current version of the service from the Kony Fabric application, and links the new version. A Kony Fabric app can be associated with only one version of an integration service.
For more details on API Versioning Use Cases, refer to Kony Fabric API Versioning
To create a new version of an Integration service, follow these steps:
The Service Definition tab appears.

The Save as dialog appears.
You can use major.minor numbering for versions. Kony Fabric supports major versions from 1 through 999, and minor versions from 0 through 99. Kony Fabric supports version numbers from 1.0 to 999.99. Note that the dot '.' is a separator for version numbers and does not function as a decimal.
Kony Fabric links the new version of the service to the Kony Fabric app, and unlinks the previous version.
To use a different version of an integration service, follow these steps:
The Service Definition tab appears.

Select a version of the service.
The Alert dialog appears. The Alert warns you that you are unlinking the current associated version of the service from the application.
Click OK.
Kony Fabric links the version that you selected to the Kony Fabric application.
Kony Kony Fabric allows you to use an existing integration service.
To use an existing integration service, follow these steps:
To use an existing integration service, in the Integration page, you can also click USE EXISTING.

The Existing services dialog appears with a list of existing services.

If a service is a part of a published app, you can rename that service only after the app is unpublished.
To use actions for existing services such as edit, clone, sample code, unlink, and delete, hover your cursor over the required service, click the Settings button to display the context menu. You can perform the following actions on an existing service:
To know more about publishing an app, refer to Publish an app.
If a service is part of a published app, you can rename that service only after the app is unpublished.
If you want to use an unlinked service, select the service from the Use Existing Integration Service dialog.
If a service is a part of a published app, you can delete that service only after you unlink the service from all the published app.
When you are defining an operation for an integration service, you can request that Kony Fabric fetch the response to the operation. If the integration service uses an OAuth 2.0 identity service for authorization, you must log in to the identity service before Kony Fabric can fetch the response from the back end.
When you first request that Kony Fabric fetch the response, the service does not yet have the required token. You can then authorize Kony Fabric to generate the token. Kony Fabric then pops up the sign in for the OAuth 2.0 identity provider. After you successfully sign in to the identity service, Kony Fabric sends the request with the identity to the OAuth 2.0 back end. Kony Fabric gets the token and stores it in a cookie for Kony Fabric on the browser. Kony Fabric sends the token to the back end, and because the back end has the valid OAuth 2.0 token, the back end sends its response. The back end populates the identity backend response, the backend response, and the output result.
For the lifetime of the session, you can test an operation and you are not required to sign in again. In the identity backend response, you can view the token and clear the token if you want to test the login again.
To test the log in for an identity service, do the following:
The Identity Backend Response tab appears. Kony Fabric identifies that the integration service is linked to an OAuth identity service. A message informs you that the service needs a backend token. If the message does not appear, the integration service has the backend token.
The sign in screen for the identity service appears.
The backend response is populated in the response pane.
In the Identity Backend Response tab, you can click Copy to copy the results of the response to the clipboard. Click Expand to open the Identity Backend Response in its own window.
If a custom integration service (for example, MongoDB or RAML) is linked to an OAuth2 identity service, while testing an operation of the integration service from Kony Fabric Console, you must pass the x-kony-oauth2-access-token as header and access_token as header value.
Also, If a custom integration service (for example, MongoDB or RAML) is linked to an OAuth2 identity service, while testing an operation of the integration service from Admin Console, you must pass the x-kony-oauth2-access-token as header and access_token as header value.
For example:
| Rev | Author | Edits |
| 7.1 | SD | SD |