Skip to content Skip to sidebar Skip to footer

Using Worklight(mfp) Http Adapters With Rest/json Services

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

Solution 1:

From the log:

istener.buildResponseJSON in WLNativeXHRPlugin.java:199 :: buildResultJSON 02-17 03:32:38.492: D/WLNativeXHR(925): callback {"headers":{},"responseText":"","statusText":"Unexpected errorCode occurred. Please try again.","wlFailureStatus":"UNEXPECTED_ERROR","status":0} 02-17 03:32:38.572: E/NONE(925): [/apps/services/api/AdapterApp/android/query] Host is not responsive

You need to set the IP address to your public one. This can be done in Run As -> Build Settings and Remote Target

There you need to supply the public IP address of the machine that hosts the MobileFirst Server.

Post a Comment for "Using Worklight(mfp) Http Adapters With Rest/json Services"