Please tell me how to search GAL in a zimlet.
I want to get datas from GAL in a zimlet.
Printable View
Please tell me how to search GAL in a zimlet.
I want to get datas from GAL in a zimlet.
It's a bit more complicated than just:
"Tell me how to. . ."
You need to build a base zimlet first:
http://wiki.zimbra.com/index.php?tit...velopers_Guide
I wrote a code like this.
It occurred UNKNOWN_DOCUMENT Exception.Code:HandlerObjectName.prototype._searchGal =
function() {
var url = "/service/soap";
var reqHeader = {};
var data = '<?xml version="1.0" encoding="utf-8"?>' +
'<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">' +
'<soap:Header>' +
'<context xmlns="urn:zimbraAccount">' +
'<nosession/>' +
'</context>' +
'</soap:Header>' +
'<soap:Body>' +
'<SearchGalRequest><name>"userName"</name></SearchGalRequest>' +
'</soap:Body>' +
'</soap:Envelope>';
AjxRpc.invoke(data,
url,
reqHeader,
new AjxCallback(this, this._callback));
};
HandlerObjectName.prototype._callback =
function(obj, result) {
alert("obj.text = " + obj.text);
};