好日子集成安全檢查適配器,MobileFirst 8.0 - 問題與JavaScript的HTTP上的SOAP適配器
我已經修改了兩個適配器,一個是安全檢查 - 用戶登陸適配器,另一個是HttpAdapterJs(Java腳本適配器),HttpAdapterJs被當我在Swagger(肥皂服務)中測試時工作正常。
當我使用AdapterAPI從UserLogin 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。
我的下一個解決方案也不起作用:
我已經創造了新的階級,我叫對象來獲取數據,但仍然是retun空值。
ServiceEmpImp testService = new ServiceEmpImp(); JSONObject objectJson= testService.validateAuthenticationfromService(dataAuth);
任何其他解決方案,工作正常嗎?