Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Perl Module to simplify SOAP access to Zimbra

  1. #21
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    3

    Default

    Hi !
    Anybody can help me to solve the SessionId problem ?
    For the moment, I have only paste all *.pm in /usr/local/src/Zimbra and try to initialize a new session, but the script doesn't works. May be I have forget something ? There is something to active in zimbra configuration ?

    These line doesn't works, and I don't know why...
    my $sessionId = $authResponse->find_child('sessionId')->content;
    Can't call method "content" on an undefined value at /usr/local/src/Zimbra//ZimbraSession.pm line 64.
    I use https;//ip:7071/service/admin/soap/

    Thank you for in advance

  2. #22
    Join Date
    Mar 2012
    Posts
    16
    Rep Power
    3

    Default

    Quote Originally Posted by David MAAS View Post
    These line doesn't works, and I don't know why...
    my $sessionId = $authResponse->find_child('sessionId')->content;
    It sounds like your response doesn't have a sessionId, I found a problem with some code like this and fixed it to use an empty string if there was no sessionId child:

    my $sessionContainer = $authResponse->find_child('sessionId');

    my $sessionId = $sessionContainer?$sessionContainer->content : "";

    Hope that helps

    -Cam

  3. #23
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    3

    Default

    Thank you for reply Cam !

    Your solutions works. I think it will be usefull to update ZimbraSession.pm for other admin.

Similar Threads

  1. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 12:34 PM
  2. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  3. zimbra-core missing
    By kinaole in forum Developers
    Replies: 1
    Last Post: 10-02-2006, 12:59 PM
  4. Replies: 16
    Last Post: 09-07-2006, 07:39 AM
  5. port 7071 not listening OS X install
    By leeimber in forum Installation
    Replies: 7
    Last Post: 03-21-2006, 10:47 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
  •