mobilefirst-adapters

IBM MobileFirst: inspecting the HTTP adapter to back-end traffic

跟風遠走 提交于 2019-12-25 03:13:28
问题 I am reaching a back-end from an HTTP adapter deployed in the MobileFirst Development Server with some unexpected results in the responses. The back-end is outside of my control and uses HTTPS, so inspecting the back-end logs or the traffic with wireshark is not a option for me. I'd like to be able to inspect the outgoing headers. Is there some way to do this? 回答1: Worklight Server to Backend I think that easiest would be to switch to HTTP for the time of inspection (assuming it's not

How to avoid duplicate entries in IBM JSONStore

允我心安 提交于 2019-12-25 01:46:17
问题 WL.JSONStore.get(collectionName).change(data, options) method does not seem to work for duplicate values. I get duplicate values entered whenever data is loaded through the adapter. Below is the code that I have used to avoid duplicate entries. init(){ console.log('JSONStore init function callled'); let collections = { activities: { searchField: {serialKey: 'string'}, adapter: { name: 'ServiceAdapter', add: 'pushActivities', remove: 'removeActivity', replace: 'replaceActivity', load: {

how to solve this error “java.security.cert.CertificateException:” while calling java adapter in mobilefirst? [duplicate]

我是研究僧i 提交于 2019-12-24 10:24:49
问题 This question already has answers here : Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error? (18 answers) Closed 11 months ago . I am currently working on Mobile first version 8. While creating a java adapter to call a api through the following code I m receiving error "java.security.cert.CertificateException: PKIX path building failed mobile first java adapter error" @GET @Path("/unprotected") @Produces(MediaType.TEXT

IBM Worklight - Include a JavaScript library on the server side

二次信任 提交于 2019-12-21 17:51:24
问题 I'm building a mobile application using IBM Worklight. In an adapter, I need to use some functionality which is provided by a third party JavaScript file. I want to know if it's possible to include such a file on the server? If not, what is the alternative? 回答1: At the moment there is no way to include an external JavaScript library in the Adapter code. Currently the only workaround is to copy the library code to the adapter. 回答2: In Worklight 6.0.0, IBM introduced Node.js adapters, touting

Insertion not happening in ibm mobile first sql adapter

China☆狼群 提交于 2019-12-20 07:56:12
问题 I am trying to insert data into existing table in database from mobilefirst. the adapter is working fine and i can insert data into database from the adapter. But when it is invoked in client side it shows failure message. function insert(){ var invocationData = { adapter:"sqlad", procedure:"procedure1", parameters:[$('#empid').val(),$('#empname').val()] }; WL.Client.invokeProcedure(invocationData,{ onSuccess :loadFeedsSuccess, onFailure :loadFeedsFailure, }); } function loadFeedsSuccess() {

How to hash IBM MobileFirst SQL adapter username password url and port in xml file?

最后都变了- 提交于 2019-12-19 11:50:43
问题 I'm using a IBM MobileFirst SQL adapter to get data from a AWS Oracle RDS. In order to connect to the sql adapter, we need to provide the username, password, url and port. The connection works, however, how should I hash it so that no one can read it? This is to make it more secure. Is this possible? <driverClass>oracle.jdbc.driver.OracleDriver</driverClass> <url>jdbc:oracle:thin:@xxx.rds.amazonaws.com:1525/SchemaSample</url> <user>Username</user> <password>Password</password> <

MobileFirst Platform JavaScript adapter can't get the parameters through WLResourceRequest

老子叫甜甜 提交于 2019-12-14 03:48:41
问题 I'm using mobilefirst platform v7, and I send post request using the WLResourceRequest/sendFormParameters api, however, I can't get the submitted parameters from js adapter side... belows are sample code: var resourceRequest = new WLResourceRequest("adapters/businessAdapter/flightsearch", WLResourceRequest.POST); var params={ "flightNum":'mu8899', "departCity":'SHA', "destCity" :'PEK' }; resourceRequest.sendFormParameters(params).then( callSuccess, callFailure ); js adapter code: function

MobileFirst Direct update customization using adapter

徘徊边缘 提交于 2019-12-13 07:31:09
问题 I am trying to customize direct update by getting all the messages from an adapter. I am not getting adapter success callback if direct update is triggered. I want to show a dialog giving option to the user to cancel direct update. Below is the code I am trying with: wl_directUpdateChallengeHandler.handleDirectUpdate = function (directUpdateData,directUpdateContext){ console.log("Test for directUpdate"); var invocationData = { adapter : 'DirectUpdateCustomizationAdapter', procedure :

Using Domain mfp 8 server return “request time out” using real mobile device?

余生长醉 提交于 2019-12-13 03:10:02
问题 Image of the console error mobile apps are successfully connected using mfp server IP Address with port 9080 but using instead of IP with Domain the mfp8 server response error msg "The Request time out" and response text "undefined" Using IP Address: mfpclient properties file: wlServerProtocol = http wlServerHost = **.**.**.78 wlServerPort = 9080 wlServerContext = /mfp/ testWebResourcesChecksum = false ignoredFileExtensions = png, jpg, jpeg, gif, mp4, mp3 wlPlatformVersion = 8.0.0.00-20190910

MobileFirst adapter invocation failed with -unsupported media type error

点点圈 提交于 2019-12-12 10:23:24
问题 We have mobilefirst adapter its working properly in swagger tool but when we are trying to invoke from client side its giving error for unsupported media type-errorcode 415.Environment mobilefirst 8.0 with ibm cloud object storage . server side java adapter code below like that, ----------------------------------------- @POST @Path("/uploadImageToObjectStorage") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) @OAuthSecurity(enabled = false) public String uploadImage(@QueryParam(value=