Results 1 to 10 of 14

Thread: PHP SOAP create appointment example

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    8

    Default PHP SOAP create appointment example

    I need help in creating appointment in PHP by using SOAP.
    Can anyone give me an example (complete code in PHP)?

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Debug window

    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...
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    7

    Default PHP SOAP create appointment example

    I am trying to do the same thing, but I am not an administrator, but have an account, and don't know too much about Zimbra or SOAP. Is there an example out that will show all the steps to sending SOAP requests to Zimbra. I assume I have to provide login and password then send my request. I also need to send emails as well.

    I don't mind figuring this out on my own, but I can't anything other than the "create an account" example that doesn't help me all that much.

    Thanks for your help.

    K

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Same advice stands. Search the forums for how to open the debug window from your (non-admin) client. Then do your normal AJAX client operations and watch the SOAP fly by in the debug window.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    7

    Default Code Example?

    Thanks for the response, but I was looking for something along the lines of a PHP or PEAR code example.



    Thanks

    K

  6. #6
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    7

    Default A Little Closer

    So I'm able go "login" to Zimbra without errors. Now, I'm trying to create the appointment. Here's the code I'm using and I'm not getting anywhere with it.
    Anyone have any ideas?

    If there is any documentation about this google hasn't heard of it.

    Thanks
    K

    try {
    $result = $soapClient->__soapCall("CreateAppointmentRequest",
    array(
    // new SoapParam('me', 'uid'),
    new SoapParam("d=20080131T100000", 's'),
    new SoapParam("d=20080131T120000", 'e'),
    new SoapParam("a=client1", 'at'),
    new SoapParam("a=client2", 'at')
    )
    );
    }
    catch (SoapFault $exception) {
    //if(is_soap_fault($ZimbraSession))
    // trigger_error("SOAP Fault: (faultcode: {$ZimbraSession->faultcode}, faultstring: {$ZimbraSession->faultstring})", E_USER_ERROR);
    echo "exception caught $exception<br><br>";
    //echo $client->__getLastRequest() . "<br><br>";
    echo "Retrieveing Request Headers.....<br>";
    echo $soapClient->__getLastRequestHeaders() . "<br><br>";
    echo "Retrieveing Response Headers.....<br>";
    echo $soapClient->__getLastResponseHeaders() . "<br><br>";
    echo "Retrieveing Response.....<br>";
    echo $soapClient->__getLastResponse() . "<br><br>";
    echo $exception . "<br><br>";
    }

    And the response I get is.......


    SoapFault exception: [soap:Client] unknown document: ns1:CreateAppointmentRequest in /dir_path/index.php:75 Stack trace: #0 /dir_path/index.php(10): SoapClient->__soapCall('CreateAppointme...', Array) #1 {main}
    Last edited by kinihepu; 01-29-2008 at 03:19 PM.

  7. #7
    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 ?

  8. #8
    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.

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, 03: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
  •