Quote:
Originally Posted by pjsmith Hi,
I was using the old class and got a problem after updating to zimbra 6. I found this new update (thanks!), and tried it, but actually still get the same error. I'm trying to use the 'zimbra_create_account' with my code which always worked just fine on the older versions of zimbra, but now with v6, my attempts to create an account are failing.
If I check the response back from the zimbra server I get
soap:Senderno valid authtoken presentservice.AUTH_REQUIREDbtpool0-43://z1.xxx.net:7071/service/admin/soap:1259838248635:4cef5c462e9067c7:SoapEngine272
Are there any updates to get this class working with v6? I've seen similar errors quotes to do with misplaced tags meaning the token ID was not seen in the right place.
Anyone have a fix?
Thanks. |
Hi, I did this changes and it works for me:
Edit the function set_zimbra_header() and change the code:
Code:
<soap:Header>
<context xmlns="urn:zimbra"';
if ($this->zimbra_session != 0)
$this->soapheader .= '>
<authToken>' . $this->zimbra_auth . '</authToken>
<sessionId id="' . $this->zimbra_session . '">' . $this->zimbra_session . '</sessionId>
</context>';
else
$this->soapheader .= '/>';
$this->soapheader .= '
</soap:Header>
to this:
Code:
<soap:Header>
<context xmlns="urn:zimbra"';
if ($this->zimbra_session != 0)
$this->soapheader .= '>
<authToken>' . $this->zimbra_auth . '</authToken>
<sessionId id="' . $this->zimbra_session . '">' . $this->zimbra_session . '</sessionId>
</context>';
else
//$this->soapheader .= '/>';
$this->soapheader .= '>
<session/>
</context>';
$this->soapheader .= '
</soap:Header>
next we edit the function zimbra_login() and change:
Code:
$this->zimbra_session = $x['SESSIONID']['DATA'];
to:
Code:
$this->zimbra_session = $x['SESSION']['DATA'];
After this it worked for me
Regards