worklight-adapters

Accessing Soap service using java adapter in mobilefirst

雨燕双飞 提交于 2019-12-12 05:08:12
问题 I have written a SOAP WSDL application using mobilefirst by: 1) Using the Discover backend services option 2) Writing my own JavaScript adapter code to follow the documentation provided by IBM. Now my final R&D is to consume this soap service using a java adapter. I have gone through many StackOverflow topics and samples but I haven't been able to find anything related. Can anyone explain the steps to invoke a SOAP-based webservice request using java adapter? 回答1: The following video blog

Using Worklight(MFP) HTTP Adapters with REST/JSON Services

陌路散爱 提交于 2019-12-12 04:00:42
问题 I'm new to Worklight and I have been trying to run this example: Using IBM Worklight HTTP Adapters with REST/JSON Services. When I run the app on an android emulator and I click a button, I got the following error: alert("mobGmapLatLngFailure") ; in the app in logcat errors: 02-09 04:05:21.924: D/NONE(1435): Client registration failed with error: {"responseHeaders":{},"status":500,"responseText":"","invocationContext":null} 02-09 04:05:22.074: E/NONE(1435): [/apps/services/api/AdapterApp

echo posted json data in server php

醉酒当歌 提交于 2019-12-12 03:59:08
问题 The json sent to server php file as post request from ibm worklight Http adapter not accessible even after decoding: Here are the codes: Http adapter: function storeRegistrationData(emailVal, passVal, fname1, gender, phone, userType, vehType) { var credentials = JSON.stringify({jemailVal: emailVal, jpassVal: passVal, jfname1: fname1, jgender: gender, jphone: phone, juserType : userType, jvehType : vehType}); var input = { method : 'post', returnedContentType : 'json', path : "/carbikepooling

IBM Worklight - Error while using variable in a SQL Adapter query

爷,独闯天下 提交于 2019-12-12 01:38:24
问题 I am using SQL adapter in worklight where I need to have a variable that I need to use it in the query. I read here and followed the same. But it`s showing the below error. Pasted the complete error message on using a variable in the SQL adapter. [ERROR ] FWLSE0099E: An error occurred while invoking procedure [project Sample]Device/SqlStatementFWLSE0100E: parameters: [project Sample]{ "arr": [ { "parameters": [ null ], "preparedStatement": "UPDATE devices SET DeviceQuantity=$[count] WHERE

IBM Worklight - Can I change invokeProcedure hostname and port?

半腔热情 提交于 2019-12-12 01:08:46
问题 I'm doing a demo application, and I need the app to be able to connect to different worklight servers. but I can't find where can I change the url 回答1: If you are referring to Worklight Adapters - you cannot change the adapter's connectivity properties during runtime. Explained here, here and here. If you are referring to Worklight Server - I assume then that you are using Worklight 6.0; Right-click on the application folder >> Run As >> Build for Remote Server (further explained here). 来源:

IBM Worklight - How to use adapter domain and port properties taken from external file?

做~自己de王妃 提交于 2019-12-12 01:05:21
问题 I have a web service. Its domain and port can be changed. So I want to read port and domain from file or db. When this information change, I update them in db or file. Adapter XML: <domain>${adp.hostname}</domain> <port>${adp.port}</port> worklight.properties: adp.hostname=localhost adp.port=10080 This is working fine. But I'd like to take adp.hostname and adp.port from file or db. 回答1: Something to remember about adapters is that you cannot change in real-time any of the properties set in

IBM Worklight 6.0.0.1 - Error deploying adapters to server

笑着哭i 提交于 2019-12-11 22:24:28
问题 I have migrated my Worklight Server from version 5.0.6.1 to 6.0.0.1. Server is configured to work with DB2 database. Every time I'm trying to deploy adapters, always the same error is returned both from Worklight Console and from Ant scripts: [adapter-deployer] Oct 17, 2013 2:28:59 PM com.worklight.ant.deployers.AbstractDeployerTask logDeployResponse [adapter-deployer] SEVERE: The 'adapter' version 'null' is different than the version of Worklight Server '6.0.0'. [adapter-deployer] Use

Why need worklight adapter instead direct ajax?

拜拜、爱过 提交于 2019-12-11 21:07:09
问题 I just curious, why we need worklight adapter to communicate with the database? Why not can't using direct ajax? Last time I'm using direct ajax it's not working at all. After I switch to worklight adapter it's running like charm? No problem at all. Why? 回答1: You did not provide any specific details about your scenario, like Where is that backend system located, if there is any security involved, what is the topology, etc... so why it's not working with AJAX is impossible to answer. As for

IBM Worklight 6.1 - Can a HTTP adapter call another HTTP adapter on server-side?

为君一笑 提交于 2019-12-11 19:45:19
问题 I am developing app on worklight 6.1 version for iPad and deployed single adapter which is having multiple procedure inside it. Now I am hitting adapter from client-side and getting response from server. Storing that response somewhere and passing back to the next adapter call for getting related data for that response. function GetUSERRID(){ var invocationData = { adapter : 'CORE_ADAPTER', procedure : 'GetUserRID', parameters : [ param1, param2 ] }; WL.Client.invokeProcedure(invocationData,{

Worklight 6.1 - error on sending notification to android device on real server

人走茶凉 提交于 2019-12-11 18:25:40
问题 I'm trying to send notification to android device. On my Worklight Studio I have succeeded to make subscription + notification. When I trying to do it on real worklight server(on liberty), I have succeeded to make subscription , but I can't send notification. I'm trying to send notification on browser like that: http://serverIp:9080/worklighttime/dev/invoke?adapter=PushAdapter&procedure=submitNotification&parameters=[%27user%27,%27text message%27] At the adapter I added: <procedure name=