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

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-27-2010, 01:39 AM
Loyal Member
 
Posts: 92
Question What is the SESSIOND parameter or TAG inside soap zimbra ?

hi !

i'm trying to use the php code of Richard Gate who build pretty joomla extensions to zimbra :
Document Details | Zimbra Calendar Info Module

When i test it, it runs, but i have a error message :

Quote:
Notice: Undefined index: SESSIOND in E:\easyphp532\www\1_zimbra_joomla\helper.php on line 76
Here the located code in helper.php :
Code:
 //Login (Save authtoken and sessionid)
 function zimbra_login($zimbrauser, $zimbrapass, $preauth, $timestamp)
 {
  $req = '<AuthRequest xmlns="urn:zimbraAccount">';
  $req .= '<account by="name">' . $zimbrauser . '</account>';
  if ($zimbrapass != '') $req .= '<password>' . $zimbrapass . '</password>';
  if ($preauth != '') $req .= '<preauth timestamp="' . $timestamp . '" expires="0">' . $preauth . '</preauth>';
  $req .= '</AuthRequest>';
  $this->zimbraSOAP_build_request($req);
  if (!($res = $this->zimbraSOAP_execute_request())) return false;
  if (!isset($res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'])) return false;
  $x = $res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'];
  echo "contenu de x <hr>:<pre>";print_r($x);echo "</pre>";
  $this->zimbra_session = $x['SESSIOND']['DATA'];
  $this->zimbra_auth = $x['AUTHTOKEN']['DATA'];
  return true;
 }
As you can see, i put a pre-print to check the $x array to solve my problem.

So, here the content of the $x :
Quote:
Array
(
[XMLNS] => urn:zimbraAccount
[AUTHTOKEN] => Array
(
[DATA] => 0_341cc503b36348397bd70b7f8b1....
)

[LIFETIME] => Array
(
[DATA] => 172800000
)

[SKIN] => Array
(
[DATA] => myzimbramail
)

)
As you can see, there is no SESSIOND part in this strucutre.

The code is a little old, maybe Zimbra architecture is updated and this SESSIOND have be replace by something else....

1.
How can i solve this problem ?

2.
Should i ignore this error message even if the code runs (get daily appointment)

By advance, thanks for help

Best regards.

Last edited by Michael REMY; 04-27-2010 at 01:51 AM..
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.