我是科尼的新手。我正在尝试连接网络服务。请检查下面给出的代码。
var myhttpheaders={"Content-Type":"application/x-www-form-urlencoded"};`enter code here`
var email = myFrm.textbox212343550452827.text;`enter code here`
var pwd = myFrm.textbox212343550452828.text;`enter code here`
var inputParamTable = { "appID":"NewTestAsync",
"serviceID":"User",
"channel":"rc",
"emailID":email,
"Password":pwd,
httpheaders: myhttpheaders,
httpconfig:{timeout: 600, method: "post"} };
try
{
var connHandle = kony.net.invokeServiceAsync(//sample/middleware/MWServlet),inputParamTable, callbackfunction);
}
catch(err)
{
alert("Error"+err);
}
}
所以我的 kony 服务器是 kony.net.invokeServiceAsync(//sample/middleware/MWServlet) throwing error like 1016 cannot connect to host。
请任何人帮助我解决这个问题。
感谢和问候,
拉梅什巴布