Results 1 to 3 of 3

Thread: [SOLVED] php soap to add appointment in calendar

  1. #1
    Join Date
    May 2007
    Rep Power

    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


  2. #2
    Join Date
    May 2007
    Rep Power

    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"/>
    <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(
    new SoapVar('<ns2:context><authToken>' . $zim->zimbra_auth . '</authToken></ns2:context>', XSD_ANYXML)
    $result = $client->__soapCall(

    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>";

  3. #3
    Join Date
    May 2007
    Rep Power

    Default error message

    invalid request: Cannot create/modify an appointment/task with organizer set to users email address when using account admin email account

Similar Threads

  1. Replies: 4
    Last Post: 03-15-2013, 01:46 PM
  2. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  3. Replies: 3
    Last Post: 05-08-2009, 08:26 AM
  4. Replies: 0
    Last Post: 08-04-2008, 07:44 AM
  5. new appointment in current calendar?
    By TommyTheKid in forum Users
    Replies: 1
    Last Post: 02-20-2008, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts