Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-18-2007, 01:18 AM
Intermediate Member
 
Posts: 20
Default search GAL in zimlet

Please tell me how to search GAL in a zimlet.
I want to get datas from GAL in a zimlet.
Reply With Quote
  #2 (permalink)  
Old 04-18-2007, 01:42 PM
Former Zimbran
 
Posts: 5,606
Default

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
Reply With Quote
  #3 (permalink)  
Old 04-18-2007, 07:09 PM
Intermediate Member
 
Posts: 20
Default

I wrote a code like this.
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);
};
It occurred UNKNOWN_DOCUMENT Exception.
Attached Images
File Type: jpg AlertError.jpg (103.7 KB, 281 views)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.