Questions tagged [mobilefirst-adapters]

Adapters are the server-side code of applications that are deployed on and serviced by IBM® MobileFirst Platform Foundation (formerly IBM Worklight Foundation). Adapters connect to enterprise applications (otherwise referred to as back-end systems), deliver data to and from mobile applications, and perform any necessary server-side logic on this data.

518 questions
2
votes
2 answers

MobileFirst - call adapter - ERR_CONNECTION_RESET

I have a problem with call MobileFirst adapter from my app. If I use swagger docs or postman to test adapter method, it works. Unfortunately from app preview, I receive…
2
votes
2 answers

Unable to build adapters using profiles and properties in Maven

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…
life4
  • 29
  • 1
  • 5
2
votes
1 answer

How to get Hostname and Port of IBM MobileFirst server where a Java Adapter is deployed?

I am using IBM MobileFirst Platform Foundation 8.0.0. I have a Java Adapter that is deployed on the mobilefirst server that is calling an external service. After creating a resource on the external system, I return the created id on “location”…
2
votes
1 answer

Custom JSON serialization for Java datatypes

In MobileFirst Foundation 8.0, are there any hook points to add a custom JSON serialization for Java datatypes in Java adapters? For example: Using a Date object in a pojo class, this gets serialized to a default format "2016-09-27T12:11:17.430Z". I…
2
votes
0 answers

Understanding adapter sessions and cookie management

I'm developing an IBM MobileFirst Platform 7.1.0 app that consumes several web services that are being protected by gicar/siteminder. Following recommendations in some tutorials, I have created one adapter called GicarManagementAdapter and a few…
Daní
  • 355
  • 1
  • 17
2
votes
4 answers

jax-rs ClientBuilder in MobileFirst adapter on IBM Liberty

My goal is to use the jax-rs client to connect to a back-end inside the MobileFirst Java adapter, but I'm really stuck and need help. The code that throws the exception: javax.ws.rs.client.Client client =…
2
votes
1 answer

Unable to initialize AdaptersAPI Object in MobileFirst V8.0 adapter which is leading to NullPointerException

I am developing the adapter in MFP V8. Below is my code to validate username and password: import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import javax.ws.rs.GET; import…
Prerak Tiwari
  • 3,436
  • 4
  • 34
  • 64
2
votes
0 answers

IBM MobileFirst 7.1 - Authorization failed: ClientId *** was not found on the server

I am using HTTP Adapters to make API request to the server. When i run the app from browser, the requests work fine. While working from iOS Simulators it works for iOS 6S Plus 9.3, but if try with any other simulator it says, [ERROR ]…
sansid1983
  • 239
  • 1
  • 4
  • 14
2
votes
1 answer

Websphere Liberty - Custom Logging

We need to create a custom log file (Example: payment.log) that contains only a custom log for payment module. We have already configured the server (server.xml) with below:
2
votes
3 answers

Does Mobilefirst provide a provision to access web services directly?

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.
Rahul
  • 217
  • 1
  • 9
2
votes
1 answer

How to invoke MobileFirst adapters with curl and SOAP?

Good day, We have the requirement to call a MobileFirst Adapter via curl and SOAP, ommiting authentication. An example how to do it with curl and application/x-www-form-urlencoded looks like this, but we also require to invoke the adapter using…
gizmore
  • 88
  • 7
2
votes
1 answer

cvc-complex-type.2.4.d: Invalid content was found starting with element 'sslCertificateAlias'. No child element is expected at this point

When I am enabling the SSL elements in adapter.xml. I am getting the error cvc-complex-type.2.4.d: Invalid content was found starting with element 'sslCertificateAlias'. No child element is expected at this point. Is there any way to resolve…
Sanjib
  • 119
  • 1
  • 1
  • 15
2
votes
1 answer

Why do we get a mismatching Java version message for our MobileFirst Java adapters?

We are working with MobileFirst Platform Studio 7.1, installed on top of Eclipse Luna 4.4.2 (I believe Eclipse comes with its own embedded Java compiler - according to the Workspace properties, the "Compiler Compliance Level" is set to 1.7). When…
Andrew Ferrier
  • 16,664
  • 13
  • 47
  • 76
2
votes
1 answer

Unit testing MobileFirst Platform Java Adapters with OAuth using NodeJS

I am writing a NodeJS application to test the IBM MobileFirst Platform adapters that I have written. The approach I want to follow to do this, as follows: Get a test token from the http://localhost:10080/AppName/authorization/v1/testtoken Use this…
Vivek
  • 680
  • 1
  • 12
  • 24
2
votes
2 answers

mobilefirst - Response type in Java adapters

I have a class (stored in server/java) that returns a Response type object and I want to use it in adapters. public class CorsResponse { public static Response build() { return Response .ok() …
Eusebiu Marcu
  • 320
  • 1
  • 10
1
2
3
34 35