mobilefirst-adapters

MobileFirst adapter is not deploying

五迷三道 提交于 2019-12-11 07:17:57
问题 When I try to deploy a MobileFirst adapter to the MobileFirst Development server, eclipse hangs with background process on 66%. At the same time the following is shown in the console: [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not updated. No functional changes were detected. When I try to invoke any procedure, eclipse also hangs on 33%. I tried to reinstall eclipse, ADT, and MobileFirst. Immediately after reinstalling

Reading local server .json file with mobileFirst javascript adapter

不羁岁月 提交于 2019-12-11 05:35:28
问题 Is there any way that I can read a .json file (located in server) from a javascript http adapter? I tried a lot of methods described in the internet but they don't seem to work because they are made for browser javascript (I get errors like XMLHttpRequest is not defined or activeObject is not defined). for example, I used this but it doesn't work: function readTextFile(file) { var rawFile = new XMLHttpRequest(); rawFile.open("GET", file, false); rawFile.onreadystatechange = function () { if

Is it possible to have all the adapter configuration in one file in IBM MFP

我怕爱的太早我们不能终老 提交于 2019-12-11 02:48:52
问题 I am using JavaScript HttpAdapter in my maven project. I have a situation where my customer expects to have more than one HttpAdapter as part of the adapter.xml file. This is something that I have not tried before. Is it possible to have more than one adapter configuration in a single file? Does IBM MFP adapter support this? If yes, please share your thoughts. Thanks, Janarthanan 回答1: my customer expects to have more than one HttpAdapter as part of the adapter.xml file. You can't have an

Does Mobilefirst provide a provision to access web services directly?

瘦欲@ 提交于 2019-12-11 01:50:23
问题 I am developing a native android app on MobileFirst platform. Does MobileFirst provide any code to connect to a web service instead of going through adapters? This is basically only for Native Android development and not for Hybrid app. 回答1: The MobileFirst SDK only provides what is required to work with features provided by MobileFirst, such as connecting to various backends using Adapters with the added benefit of the MobileFirst security framework, and other features. If you have a need to

Using jax-ws in MobileFirst server (Liberty server)

拟墨画扇 提交于 2019-12-06 12:51:20
问题 We are trying to access SOAP 1.1 Web services from a Java JAX-RS adapter. We are using a SOAP Client that has been generated from our WSDL. But when unmarshalling soap fault we get the following exception: ... Caused by: java.lang.ExceptionInInitializerError at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:107) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke

Unable to build adapters using profiles and properties in Maven

为君一笑 提交于 2019-12-06 09:55:13
问题 I have created an http adapter using mfpdev adapter create but I found out the adatper.xml configuration file contains server connection configuration which I would like to change accordingly to dev,test,produciton environment. So I tried to use maven resource filter by changing the pom.xml as following pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org

Using jax-ws in MobileFirst server (Liberty server)

谁说胖子不能爱 提交于 2019-12-04 18:48:22
We are trying to access SOAP 1.1 Web services from a Java JAX-RS adapter. We are using a SOAP Client that has been generated from our WSDL. But when unmarshalling soap fault we get the following exception: ... Caused by: java.lang.ExceptionInInitializerError at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:107) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:135) at com.sun.proxy.$Proxy196.rechercherContrats(Unknown Source) at fr.sma.prod.adapter

Unable to build adapters using profiles and properties in Maven

孤街醉人 提交于 2019-12-04 15:21:12
I have created an http adapter using mfpdev adapter create but I found out the adatper.xml configuration file contains server connection configuration which I would like to change accordingly to dev,test,produciton environment. So I tried to use maven resource filter by changing the pom.xml as following pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.my.adapter</groupId> <artifactId

IBM Worklight - Include a JavaScript library on the server side

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:33:38
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? 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. In Worklight 6.0.0, IBM introduced Node.js adapters, touting "a huge selection of third-party modules extending connectivity and providing implementations of various common

Authorization failure calling MobileFirst Adapter

Deadly 提交于 2019-12-04 05:29:27
问题 Not sure whether the same issue has been raised before (I tried to comment but was unable to do so - see link below) Anyway, I've just upgraded my development environment to MobileFirst Studio 7.1 and I'm having an issue with the adapters we created in 7.0. The adapters deploy without error but when I try to call WL.Client.invokeProcedure from my browser (I'm just testing as a web app at the moment) I get an error 500 in the browser console. I've tested the adapters using the "Run As ... >