【发布时间】:2017-04-07 16:24:37
【问题描述】:
美好的一天,
我修改了两个适配器,一个是带有安全检查的 - UserLogin 适配器,另一个是 HttpAdapterJs(Javascript 适配器),当我在 Swagger(soap 服务)中测试时,HttpAdapterJs 工作正常。
当我使用 AdapterAPI 从 UserLogin Adapter 调用 Adapter HttpAdapterJs 时,它将返回空值。
HttpUriRequest req = adaptersAPI.createJavascriptAdapterRequest("HTTPAdapterJS", "getAuthenticationService", URLEncoder.encode(user_name, "UTF-8"), URLEncoder.encode(pass_word); org.apache.http.HttpResponse response = adaptersAPI.executeAdapterRequest(req);- 安全检查类不允许 AdapterAPI。
我的下一个解决方案也不起作用:
我创建了新类并调用了对象来获取数据,但它仍然返回空值。
ServiceEmpImp testService = new ServiceEmpImp(); JSONObject objectJson= testService.validateAuthenticationfromService(dataAuth);还有其他可以正常工作的解决方案吗?
【问题讨论】:
标签: ibm-mobilefirst mobilefirst-adapters mobilefirst-server