Results 1 to 3 of 3

Thread: search GAL in zimlet

  1. #1
    Join Date
    Feb 2007
    Posts
    20
    Rep Power
    8

    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.

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    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

  3. #3
    Join Date
    Feb 2007
    Posts
    20
    Rep Power
    8

    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 Attached Images

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  2. Replies: 2
    Last Post: 05-14-2009, 04:32 PM
  3. Replies: 5
    Last Post: 01-11-2008, 04:34 AM
  4. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •