ibm-mobilefirst

How to send the JSON data in rest web services?

假如想象 提交于 2019-12-20 07:19:46
问题 How to send the JSON data in rest web services? I have a json object which contains product Id,store Id,price,product Unit,quantity values.Here All the values are integer only except product Unit value. Now, I want to send these values into rest web services. Could you please give any samples or any valuable suggestions? 回答1: Since you have tagged this with the Worklight tag, I'm going to assume you meant to ask how to send json data from a worklight client to an external REST service. In

Multiple Mobilefirst-Server artifacts concurrent deploy

◇◆丶佛笑我妖孽 提交于 2019-12-20 07:12:50
问题 I use a batch procedure for deploying MFP v7 artifacts (wlapps and adapters). The procedure is based on the standard ant tasks defined in worklight-ant-deployer.jar. The MFP environment runs onto a WAS cell, and consists of a single AdminService application managing multiple WLRuntimes. Is it possible to run two (or more) deploy tasks concurrently against different WLRuntime targets ? Furthermore, sticking to a single WLRuntime, is it possible to deploy different multiple artifacts

Can we get the app version and IP address info using worklight api?

可紊 提交于 2019-12-20 07:09:15
问题 In my worklight hybrid app, I want to get two info: app version (the version the end-user sees in the various App Stores or in the device) IP address How can I do it? 回答1: IP address: The Worklight Hybrid application does not have any IP address. The client (the app...) connects to the Worklight Server. The IP address you set the client to connect to is set in application-descriptor.xml as the value of worklightServerRootURL . If you mean that you're actually looking for the device IP address

how to perform xslt transformation for input request in adapter

浪尽此生 提交于 2019-12-20 06:29:35
问题 i have created a XSLT for the WL.Server.invokeHttp which gets the data from the backend server in XML format and performing transformation successfully. this adapter is used to get the data from backend server. but while sending data to server in XML , as i am getting data in adapter as JSON , i need to transform it into XML using XSLT. is there any provision in ibm worklight adapters that i can perform XSLT transformation for input request just the way i can do it easily while getting

IBM Worklight - How to customize an app after creating its .api/.apk?

ぃ、小莉子 提交于 2019-12-20 06:09:25
问题 I wish to distribute my enterprise Worklight application to many different clients. Basically what I want to do is give my customer the .ipa and .apk files of the Worklight app so that they may upload them onto their own Application Center. The problem is that each application needs to be slightly different in that there are different URLs they must refer to as well as some other properties such as text. I was wondering if there's a way to have my ipa/apk read from a properties that my client

IBM Worklight v6.0 - Error while adding an application to the Mobile Test Workbench

白昼怎懂夜的黑 提交于 2019-12-20 06:05:15
问题 I have a Worklight app, created an apk file from it. Created a Test Project. Adding the apk file to the workbench, it has an error saying: Application xxx.apk cannot be imported; it is either an invalid one or it contains specific features that are not supported. 回答1: Try opening the .log file for the worklight workspace. I saw an error saying that for the Rational Test Workbench to work, I need to use JDK and not JRE. The solution that solves my problem is as follow: In the workspace, go to

$.mobile.silentScroll does not work in worklight app

血红的双手。 提交于 2019-12-20 05:52:29
问题 I am developing an application using worklight framework from IBM in which I use jquery mobile library to code. Unfortunately, when I use $.mobile.silentScroll to scroll, it has no effect, it does not work. Has anyone met that issue? In other work, How to scroll page in worklight? 回答1: I don't think you can do this with jQuery Mobile's silentScroll , as it basically uses window.scrollTo, and this allows to scroll only within the current viewport (what you currently see on the screen). Instead

MobileFirst Starter - Bluemix Push Notification failure in Production mode

感情迁移 提交于 2019-12-20 04:56:13
问题 I am building an iOS app that can receive remote notification through Bluemix. I have the app Bundle Identifier in Xcode matches the AppId in Apple Portal which also match the APN certificate (xxx-sandbox.p12 and xxx-production.p12). During development I have tested using Push Notification with Bluemix Sandbox (under MobileFirst Starter boilerplate). All work fine. I can receive notification in my iPhone. However when I tested in Production mode, I keep getting error messages: "Internal

Failed deploying application using Worklight Console: "Failed to deploy application <appName>.wlapp'. : ERROR

拈花ヽ惹草 提交于 2019-12-20 04:55:10
问题 I'm using Worklight 5.0.6.20130311-0918, running on WebSphere application server (7.0.0.21) on RedHat Linux, and I'm trying to deploy an app using Worklight Console. I'm getting an error: 'Failed to deploy application 'CitizenCollaboration-android-1.0.5.wlapp'. : ERROR' There is not much information in WebSphere's SystemOut.log. I tried increasing the trace level in the App Server Admin Console but still not enough error information. Note: I'm able to deploy worklight adapters successfully

How to Increase Java Heap Space in Worklight Server?

喜欢而已 提交于 2019-12-20 04:19:47
问题 I am getting JVM Heap space error in Worklight when tried to deploy Android Application. Failed to deploy the application to Worklight server: InputStream error: java.lang.OutOfMemoryError: Java heap space How to fix this issue. Any Help is appreciated. 回答1: Not exactly a Worklight issue, but rather an Eclipse issue. See possible solutions at: How to increase Java Heap Size in Eclipse How to increase application heap size in Eclipse? java.lang.OutOfMemoryError: Java heap space Increase JVM