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 09-18-2008, 05:30 AM
Active Member
 
Posts: 46
Default [SOLVED] php soap to add appointment in calendar

hi guys,

i am using admin token to add appointment to other users, but got error message saying admin account has no permission to add calenar to other users, please help,thanks

Gordon
Reply With Quote
  #2 (permalink)  
Old 09-18-2008, 05:43 AM
Active Member
 
Posts: 46
Default here is my code, please find out problems for me

$params = array(
new SoapVar('<m d="'..'">
<e t="f" a=" my email address" />
<inv method="REQUEST" type="event" fb="B" transp="O" status="CONF" allDay="0" name="Test">
<s d="20080919T090000"/>
<e d="20080919T103000"/>
<at a="my email address" role="REQ" ptst="AC" rsvp="1"/>
<or a="my email address"/>
</inv>
<mp ct="multipart/alternative"><mp ct="text/plain"><content/></mp><mp ct="text/html"><content/></mp></mp>
<su>Test </su>
</m>', XSD_ANYXML)
);

try {
$soapHeader = new SoapHeader(
'urn:zimbra',
'context',
new SoapVar('<ns2:context><authToken>' . $zim->zimbra_auth . '</authToken></ns2:context>', XSD_ANYXML)
);
$result = $client->__soapCall(
"CreateAppointmentRequest",
$params,
$options,
$soapHeader
);

echo "done<br><br>";
echo $client->__getLastRequest() . "<br><br>";
echo $client->__getLastResponse() . "<br><br>";
echo "executed<br>";
} catch (Exception $e) {
echo "exception caught<br><br>";
echo $client->__getLastRequest() . "<br><br>";
echo $client->__getLastRequestHeaders() . "<br><br>";
echo $client->__getLastResponseHeaders() . "<br><br>";
echo $client->__getLastResponse() . "<br><br>";
echo $exception . "<br><br>";
}
Reply With Quote
  #3 (permalink)  
Old 09-18-2008, 06:08 AM
Active Member
 
Posts: 46
Default error message

invalid request: Cannot create/modify an appointment/task with organizer set to users email address when using account admin email account
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.