It is too weird , Ok lets do some work around
- Try implementing the way it was implemented in the example
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
// options is an optional parameter helps in configuring the network layer.
// To configure for a thin layer, use xmlHttpRequestOptions instead of httpRequestOptions.
// Values for timeoutIntervalForRequest and timeoutIntervalForResource are in seconds.
var options={"httpRequestOptions":{"timeoutIntervalForRequest":60,
"timeoutIntervalForResource":600}}
try{
integrationClient = KNYMobileFabric.getIntegrationService(serviceName);
}
catch(exception){
kony.print("Exception" + exception.message);
}
integrationClient.invokeOperation(operationName, headers, params,
function(result) {
kony.print("Integration Service Response is :" + JSON.stringify(response));
},
function(error) {
kony.print("Integration Service Failure :" + JSON.stringify(error));
}, options
);
make sure you pass null to the header parameter instead of empty
2. if above solution not worked try calling the service as below
var operationName = "<your Operation name>";
inputParams.serviceID = "Service Name";
inputParams.httpheaders = {};
inputParams.httpconfig = {timeout:5};
mfintegrationsecureinvokerasync(inputParams, "Service Name", operationName, callbackMethod);
Either Failure or success it will go to the callback method you have to handle accordingly.