Hi, every body,
I am using SOAP to check the external URL if valid, my code is:
Quote:
myMailZimlet.prototype.CheckURL =
function() {
var TxtUrl = "http://www.domain.com/server.txt";
var EncUrl = AjxStringUtil.urlComponentEncode(TxtUrl);
var pxyUrl = [ZmZimletBase.PROXY, encodedExtServerUrl].join("");
var CallBack = new AjxCallback(this, this._httpExternalGetCallback);
var myResult = AjxRpc.invoke(null, proxyServletUrl, null, CallBack, false);
if (myResult.success) {
return true;
} else {
return false;
}
}
myMailZimlet.prototype._httpExternalGetCallback =
function(response) {
if (response.success == false) {
return;
}
appCtxt.getAppController().setStatusMsg(response.t ext, ZmStatusView.LEVEL_INFO);
};
|
The function _httpExternalGetCallback is working, but the myResult.success in function CheckURL always return: undefine.
Could any one tell me how to get the return value in SOAP? Thanks.