我正在使用Kony工作室進行應用程序開發。我已經使用Eclipse進行了登錄驗證,以編寫用於創建Web服務以連接到oracle10g數據庫的代碼。但在前端,當我嘗試將前端連接到Web服務時,出現錯誤。 狀態== 400正在驗證,但我沒有得到操作碼爲0,而是在進入else語句並給出錯誤警報。這是用於連接到Web服務的Javascript代碼。 請幫忙。 opstatus == 0是什麼意思?opcode == 0表示什麼?
function GetLogin()
{
var Userid =login.txtloginuname.text;
var Password = login.txtloginpass.text;
var inputParamsLogin={serviceID:"servicelogin",uname:Userid,pass:Password}
if (Userid!=null && Userid!="" && Password!="" && Password!=null)
{
appmiddlewareinvokerasync(inputParamsLogin,loginCallBackresponse);
}
else
{
var alert_seq5_act0 = kony.ui.Alert(
{
"message": "Please Enter User name and password",
"alertType": constants.ALERT_TYPE_ERROR,
"alertTitle": "",
"yesLabel": "OK",
"noLabel": "",
"alertIcon": "",
"alertHandler": null
}, {});
kony.application.dismissLoadingScreen();
}
function loginCallBackresponse(status,loginResults)
{
if(status==400)
{
alert("productResults");
if(loginResults.opstatus==0)
{
alert("inside opstatus");
else
{
var alert_seq5_act0 = kony.ui.Alert({"message": "Service Failed:"+loginResults.errmsg,
"alertType": constants.ALERT_TYPE_ERROR,
"alertTitle": "",
"yesLabel": "OK",
"noLabel": "",
"alertIcon": "",
"alertHandler": null}, {});
kony.application.dismissLoadingScreen();
}
}
}
}
我收到警報「產品結果」,但無法獲得「opstatus內部」警報。 相反,我得到「服務失敗的警報。
發佈我創建的服務並獲取此URL後,我將該URL置於chrome中:http://:8081/admin/direct。我收到以下錯誤:步驟:準備歸檔
步驟:準備歸檔失敗(消息:打開zip文件時出錯)
回滾步驟...
回滾步驟:準備歸檔
回滾步驟:準備歸檔失敗(消息:打開zip文件時出錯)
我該如何解決? – user3239687
http://:8081/admin/direct應該給科尼moddleware控制檯。我覺得中間件配置不正確。會有一個middleware.log文件。請檢查那個日誌。 –
sreejithkr
我在哪裏可以找到這個文件,我在哪裏檢查它?我是新來的科尼 – user3239687