Invoking an Integration Service
Invoke a Service
This API invokes an integration service that is configured in the Quantum Fabric portal.
// Sample code to fetch the integration service details
var integrationClient = null; var serviceName = < your - service - name > ; var operationName = < your - operation - name > ; var params = { "your-input-keys": "your-input-values" }; var headers = { "your-header-keys": "your-header-values"; //If there are no headers,pass null try { integrationClient = client.getIntegrationService(serviceName); } catch (exception) { console.log("Exception" + exception.message); } integrationClient.invokeOperation(operationName, headers, params, function(result) { console.log("Integration Service Response is :" + JSON.stringify(response)); }, function(error) { console.log("Integration Service Failure :" + JSON.stringify(error)); } );
NOTE: The client is the kony.sdk(); object.
Error Codes for Failure Callbacks for Integration Services
Error Code | Error Message |
---|---|
100 | UnhandledMFcode |
101 | Invalid User Credentials. |
102 | Invalid App Credentials. |
103 | Invalid User/App Credentials. |
104 | Session/Token got invalidated in the backend. Please login. |
105 | Invalid provider in appServices |
106 | Claims Token is Unavailable |
1000 | An unknown error has occurred |
1011 | An error occurred while making the request. Please check device connectivity, server url and request parameters |
1013 | Invalid JSON response was returned |
1014 | Request to server has timed out |