Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: PHP SOAP create appointment example

  1. #11
    kinihepu is offline Junior Member
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    7

    Default Real Close

    Here's the code I'm using. What happens is it creates the appointment on my calendar, but doesn't on the others on the list. It also doesn't send them an email asking them to Accept the appointment. But when I delete or modify the appointment the others get an email.

    So I need it to show up on other's calendar and send them an email.

    What I'd like to do is run the debugger as Admin, but I'm not an admin. The docs give me some hints, but not enough to solve the problem.

    Thanks much for your help.
    K


    ---------------------------------------


    $options = array('uri' => "urn:zimbraMail");
    $params = array(


    new SoapVar('<m d="1148883681781">
    <e t="f" a="email1" />
    <e t="t" a="email2" />
    <e t="f" a="email3"/>
    <e t="t" a="email4"/>
    <inv method="REQUEST" type="event" fb="B" transp="O" status="CONF" allDay="0" name="Test">
    <s d="20080131T020000"/>
    <e d="20080131T023000"/>
    <at a="email2" role="REQ" ptst="AC" rsvp="1"/>
    <at a="email3" role="REQ" ptst="TE" rsvp="1"/>
    <or a="email1"/>
    </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 {
    echo "creating header<br>";
    $soapHeader = new SoapHeader(
    'urn:zimbra',
    'context',
    new SoapVar('<ns2:context><authToken>' . $authToken . '</authToken></ns2:context>', XSD_ANYXML)
    );

    echo "trying<br>";
    $result = $soapClient->__soapCall(
    "CreateAppointmentRequest",
    $params,
    $options,
    $soapHeader
    );
    echo "executed<br>";
    }

  2. #12
    Michael REMY is offline Loyal Member
    Join Date
    Jun 2009
    Posts
    93
    Rep Power
    6

    Default hi

    hi kinihepu,


    did you success in your aim ?
    Do you manage to create a appointement using php ?

    Shall you post a very simply example ?

    thanks

  3. #13
    Michael REMY is offline Loyal Member
    Join Date
    Jun 2009
    Posts
    93
    Rep Power
    6

    Question how t odo that ?

    Quote Originally Posted by dkarp View Post
    Easiest thing to do is turn on the SOAP trace debug window and create an appointment from the AJAX client. Then use the PHP SOAP package of your choice to generate XML like that...
    how to do that ? which tool ? which software ?

    Can i do it under Win32 plateform ?

  4. #14
    bulletxt is offline Member
    Join Date
    Apr 2010
    Posts
    13
    Rep Power
    5

    Default

    post deleted by me
    Last edited by bulletxt; 11-02-2010 at 01:47 PM.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 01:00 AM
  2. PHP SOAP vs Zimbra
    By Corey Scott in forum Developers
    Replies: 14
    Last Post: 02-05-2011, 04:41 AM
  3. How to handle SOAP body response in PHP
    By ferdinant in forum Developers
    Replies: 1
    Last Post: 07-03-2007, 01:21 PM
  4. php CreateAccountRequest via SOAP
    By bookatechie in forum Developers
    Replies: 2
    Last Post: 05-02-2007, 11:28 AM
  5. PHP create context header
    By bookatechie in forum Developers
    Replies: 1
    Last Post: 05-01-2007, 08:30 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
  •