User Guide: SDKs > VoltMX Iris SDK > Invoking an Integration Service
Invoking an Integration Service
This API invokes an integration service that is configured in the Volt MX Foundry portal.
Note: The client is the voltmx.sdk(); object.
httpRequestOptions | Datatype | Comments |
---|---|---|
timeoutIntervalForRequest | int | This is a time out value for the HTTP connection. This can also be referred as connection time out value in seconds. |
timeoutIntervalForResource | int | This is used to give a maximum time in seconds for which the network resource should be kept alive on iOS device. This is only applicable for background network calls and default value is 1 week (7 days) unless specified in option. |
enableBackgroundTransfer | boolean (true/false) | Enables HTTP request calls in background in iOS. Note: This may lead to duplicate transactions in the system, should only be used for GET calls. iOS internally retries the request to keep the connection alive till it reaches timeoutIntervalForResource value, which may create duplicate transactions in back end. |
xmlHttpRequestOptions | Datatype | Comments |
---|---|---|
enableWithCredentials | true/false | To allows CORS requests in SPA |
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 |