On our native app we trigger a rest-call clientside using module NativeRest, javascript CallRestService. We need to send a header along for authentication of the calling scanner/phone. We create the header in the nanoflow like this: '{"Content-Type": "application/json",
"ApiKey":"'+@ConnectorToMyPublishingApp.ApikeyMobileScanners+'"}'
And we feed that header to the javascript call: What happens is that the attribute-name ‘ApiKey’ gets transformed to smallcaps: 'apikey’. This is not accepted by the publishing app. When we trigger the same call via SoapUI, it works like a charm. We tried a number of ways to write the name. 'Api-Key’ gives apiKey, '-Api-Key’ does not get accepted at all. Using Mendix 8.14.1
↧