Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 47

Thread: [SOLVED] PHP Class for easy access to Zimbra SOAP API

  1. #31
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    5

    Default

    hi , all

    i'm tried run script get_email.php , but it not work
    and error

    shell>> php get_email.php hometest.net

    PHP Notice: Undefined index: SESSIONID in /root/zimbraAdmin/zimbraAdmin.php on line 67
    Email addresses: hometest.net
    PHP Warning: Invalid argument supplied for foreach() in /root/zimbraAdmin/get_email.php on line 33

    i have check curl and soap is enabled.

    thank.

  2. #32
    Join Date
    Oct 2009
    Posts
    3
    Rep Power
    6

    Default

    Quote Originally Posted by smartsoft View Post
    hi , all

    i'm tried run script get_email.php , but it not work
    and error

    shell>> php get_email.php hometest.net

    PHP Notice: Undefined index: SESSIONID in /root/zimbraAdmin/zimbraAdmin.php on line 67
    Email addresses: hometest.net
    PHP Warning: Invalid argument supplied for foreach() in /root/zimbraAdmin/get_email.php on line 33

    i have check curl and soap is enabled.

    thank.
    Did you made the changes that I wrote in my last post?

    Regards

  3. #33
    Join Date
    Jun 2010
    Posts
    5
    Rep Power
    5

    Default

    Quote Originally Posted by canche_x View Post
    Did you made the changes that I wrote in my last post?

    Regards
    hi canche_x

    thank you
    after made changes follow of your
    i can made it.

  4. #34
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    5

    Default SearchGalRequest, proper format

    Could someone show me the correct format for SearchGal. I'm trying to extract tasks and calendar appointments. I've read all the BNF soap docs and I've tried:

    Code:
    <SearchGalRequest type="resource">
    <name>test</name>
    </SearchGalRequest>
    This gives me back some random task from 2 weeks ago, and ignores any existing tasks that are more current and name doesn't seem to have any affect.

    I've also tried a SearchRequest derivation
    Code:
    <SearchRequest type="appointment">
    <query>in:tasks && subject:test</query>
    </SearchRequest>
    Returns nothing...
    Thanks,
    Jordan
    Last edited by jshaw; 06-28-2010 at 09:30 AM.

  5. #35
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Smile can i get sample code..

    Quote Originally Posted by Syruis View Post
    Hi,

    there is lot of bugs in the original zimbraAdmin functions.

    I make another versions without bugs @ this time.

    You can get this version here:
    http://syruis.free.fr/php/zimbraAdmin.tar.gz

    For Support and help you can contact CELESTE @:
    The lab'

    In the archive you can see two folders with the older functions and a "magic" class call zimbra that can help you very well.
    Edit=> I have make a Zend bootstap to include functions in the php4 function in the php5 class. But you can use something like include "../zimbraAdmin/zimbraAdmin.php"; ....
    To change your settings use:
    Code:
    protected function _zimbra_login() {
    		global $params, $libelles;
    		$zimbraserver = $this->_getSettings($params->ZIMBRASOAP, $params->host);
    		;
    		$zimbraadminemail = $this->_getSettings($params->ZIMBRASOAP, $params->login);
    		;
    		$zimbraadminpassword = $this->_getSettings($params->ZIMBRASOAP, $params->password);
    [...]
    or directelly
    Code:
    $zim = new zimbraAdmin($zimbraserver);
    $zim->zimbra_login($zimbraadminemail, $zimbraadminpassword);
    $this->zim = $zim;
    This code use zimbra connection cache.. thanks php5 -


    Good lucks,
    Syruis
    first i would like to give thanks to you for the class that you've made.. but actually i'm still confusing how to use that.

    i want to simply create account and set must change password on first login for it. can i get easy sample code for this?

    thanks so much

  6. #36
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    4

    Default

    Is this code, still available?

    I cannot connect to the ftp server you provided.

  7. #37
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by nerygonzalez View Post
    Is this code, still available?

    I cannot connect to the ftp server you provided.
    If you mean the link in the post above yours then it works for me.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #38
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    4

    Default

    Quote Originally Posted by phoenix View Post
    If you mean the link in the post above yours then it works for me.
    I just checked it out and worked!

    I'm exploring zimbra.php file and found this reference
    require_once 'ZimbraAccount.php';

    I can't seem to find this in the tar file. I guess, this is really necessary to run the class.

    Can you help me out?

    Regards.

  9. #39
    Join Date
    Apr 2010
    Location
    Sweden
    Posts
    3
    Rep Power
    5

    Default

    Hi Guys...
    As I didn't got the 7.x environment yet, I was wondering if anyone has tried this against a 7.x installation ?

    Best regards,
    Alex R.

  10. #40
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    4

    Post Zimbra PHP SOAP 0.03

    As an improvement of PHP Class for easy access to Zimbra SOAP API which has been originally named as: zimbraAdmin we have released: Zimbra PHP SOAP 0.03.

    Readme for changes – 10th May 2011
    ==================================
    Class has been updated to work on ZCS 6.0.10 thanks to the changes
    suggested by canche_x (http://www.zimbra.com/forums/develop...tml#post163659).

    An example configuration file:
    zimbraAdmin.config
    has been added to the zimbraAdmin folder.

    Example scripts like:
    get_email.php
    get_account.php
    have been rewritten so that you only have to uncomment:
    return 0;
    line so that you can test them.

    You can find more information and download on:

    bCommunity's Zimbra PHP SOAP 0.03 post.

Similar Threads

  1. Replies: 9
    Last Post: 03-01-2008, 07:21 PM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  3. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  4. Replies: 8
    Last Post: 02-27-2007, 03:10 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
  •