worklight-adapters

5.0.6 - Changing Adapter domain and port configuration after deploy through configuration - for QA and Testing team in development process

柔情痞子 提交于 2019-12-02 06:43:42
I have seen some questions about dynamic adapter configuration at run-time how to pass domain,port number,username and password from user input to worklight http adapter With a Worklight Adapter can I change the domain and port for a procedure at runtime? but my question is about adapter configuration after deploy on WL server 5.0.6 from external - not at runtime from code. Our scenario is that in our enterprise development and testing process requires the QA and Testing team to change the destination host and port for the adapters from mockup-backend to testing-backend to production-backend

IBM Worklight - How to pass parameters from the application to the adapter?

别等时光非礼了梦想. 提交于 2019-12-02 03:53:42
I want to pass parameters from the application to the adapter; I want the users of the app to enter these options. Right now I am passing the parameters like this in adapter: function getFeeds() { WL.Logger.debug("inside method"); var input = { method : 'get', returnedContentType : 'json', path : "ios/clientRegister.php", parameters:{ "employeenumber":"500","employeename":"Harish","employeeemail":"anand5@gmail.com","city":"Delhi", "employeeadID":"an6458","businessUnit":"WASE","country":"India","city":"Bengaluru","location":"EC4","bloodGroup":"B+ve", "gender":"Male","tShirt":"xl" } }; return WL

Upgrading to Worklight 6.2

送分小仙女□ 提交于 2019-12-02 03:43:50
I am facing issue with upgrading to Worklight 6.2. Please find the error below: ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750] FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) Thanks in advance I guess you see this when starting your 6.2 server? It's because you have your 6.1 server still running. The clash on the dt_socket will cause

IBM Worklight - Is it possible to call Stored Procedures with the Out parameter?

荒凉一梦 提交于 2019-12-02 01:57:15
问题 Is it possible to call a Stored Procedure in Worklight through the WL.Server.invokeSQLStoredProcedure API method that requires an Out parameter? 回答1: No, WL SQL adapter does not support out parameters. 回答2: There is another way to override Worklight and call stored procedures via Java to get OUT params. See answer here IBM Worklight - How to get OUT parameter when invoking a stored procedure? This approach can be used to get OUT parameters as well as Ref Cursors (SYS_REFCURSOR) which also are

IBM Worklight 6.1 - How to send post values in adapter?

南楼画角 提交于 2019-12-02 00:46:43
I'm using IBM worklight 6.1 for my mobile app project. My question is how to send post values in adapter? function getUsername(userAlias,locale) { path = "rest-rib/service/Login/login_username"; var input = { method : 'post', returnedContentType : 'json', path : path }; return WL.Server.invokeHttp(input); } Thanks a lot in advance. Idan Adar Your question does not specify what is NOT working for you... please add more details. You should also read about HTTP adapters. Training module Information Center (scroll down to invokeHttp) Sample project More: IBM Worklight - Sending HTTP POST request

IBM Worklight - Is it possible to call Stored Procedures with the Out parameter?

折月煮酒 提交于 2019-12-01 22:14:06
Is it possible to call a Stored Procedure in Worklight through the WL.Server.invokeSQLStoredProcedure API method that requires an Out parameter? No, WL SQL adapter does not support out parameters. Sam Nunnally There is another way to override Worklight and call stored procedures via Java to get OUT params. See answer here IBM Worklight - How to get OUT parameter when invoking a stored procedure? This approach can be used to get OUT parameters as well as Ref Cursors (SYS_REFCURSOR) which also are not supported. 来源: https://stackoverflow.com/questions/18024072/ibm-worklight-is-it-possible-to

Issue while using Polling in IBM Worklight Push Notification

夙愿已清 提交于 2019-12-01 13:32:36
I was trying out WL 6.0 Push notification with Android device. Push notifications is working fine. I was also trying to use Polling. As per the docs from Info center, for polling we need to invoke another procedure and after certain intervals when we get response from that procedure method push is done. Please correct me if I'm wrong. So, as per this I have declared a new procedure named getNotificationsFromBackend and invoked that. like this WL.Server.createEventSource({ name: 'PushEventSource', onDeviceSubscribe: 'deviceSubscribeFunc', onDeviceUnsubscribe: 'deviceUnsubscribeFunc',

Worklight - How to check if a client is already logged in, then pass the login screen

淺唱寂寞╮ 提交于 2019-12-01 12:30:54
I get the following error when I log in the second time in my login screen. [ERROR ] FWLSE0099E: An error occurred while invoking procedure [project Klappr]KlapprAuthAdapter/submitAuthenticationFWLSE0100E: parameters: [project Klappr]{ "arr": [ "dGVzdDp0ZXN0" ] } Cannot change identity of an already logged in user in realm 'KlapprAuthRealm'. The application must logout first. FWLSE0101E: Caused by: [project Klappr]null com.worklight.common.log.filters.ErrorFilter In submitauthentication (in the adapter) I check if the username and password are correct and if they are correct I set the

Issue while using Polling in IBM Worklight Push Notification

喜欢而已 提交于 2019-12-01 11:32:00
问题 I was trying out WL 6.0 Push notification with Android device. Push notifications is working fine. I was also trying to use Polling. As per the docs from Info center, for polling we need to invoke another procedure and after certain intervals when we get response from that procedure method push is done. Please correct me if I'm wrong. So, as per this I have declared a new procedure named getNotificationsFromBackend and invoked that. like this WL.Server.createEventSource({ name:

Worklight http adapter questions

旧城冷巷雨未停 提交于 2019-12-01 06:24:01
问题 2 simple questions : Do all http requests make thru http adapter do go thru the worklight server first? If so then does it mean even a http adapter request to a public web site say a request to yahoo site for a stock price would also go thru worklight server first then next to the yahoo web site? If so then how do I make a http request without going thru the worklight server? I just want to go straight to yahoo web site without the "intermediate" server (i.e. workligth server) 回答1: 1) Do all