Results 1 to 5 of 5

Thread: PHP Soap Tutorial

  1. #1
    Join Date
    May 2007
    Location
    Los Angeles, California
    Posts
    71
    Rep Power
    8

    Default PHP Soap Tutorial

    Is there a tutorial available to show:

    1. How to configure php to use soap to connect to zimbra database?
    2. Code examples of this being done?

    I just want to use php to search zimbra contacts.

    I've found a number of php soap examples in this forum, but it's a bit confusing as I don't understand how php soap is actually implemented.

    Thanks for any assistance!

    -ron
    Mark A. Fien
    The FIEN Group, LLC

    ** Murphy was an optimist ***

  2. #2
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    With PHP it can be a bit of a mess - but I have had better luck posting data through JSON objects rather than SOAP objects. You can also use zmprov/zmmailbox with debug mode, or zmsoap with debug mode to see soap calls made, and mimic the same behavior via PHP.

  3. #3
    Join Date
    Jun 2009
    Posts
    93
    Rep Power
    6

    Default ok

    hi folioguru,


    i'm in too ! very interesting ! i'm subscribing to you !
    Since a long time, i search a clear php code to browse contact, add appointment..
    For now, i just have a clean example of php code to get folders mail and today calendar events.

    have a good day

  4. #4
    Join Date
    May 2007
    Location
    Los Angeles, California
    Posts
    71
    Rep Power
    8

    Default

    OK, if there's no tutorial, how about this:

    Does someone have a working example of using php to connect to zimbra database, search contacts (by name or whatever) and bring back results for processing?

    ANY assistance is appreciated.

    Thanks!
    Mark A. Fien
    The FIEN Group, LLC

    ** Murphy was an optimist ***

  5. #5
    Join Date
    May 2007
    Location
    Los Angeles, California
    Posts
    71
    Rep Power
    8

    Default Use REST API instead of SOAP

    OK, I did sort of figure out a possible solution using REST API: ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki

    Right now, I don't need to post any data, only search. I figure with REST I could use php to make call to Zimbra server using either "curl", file_get_contents("http://www.example.com/file.xml") or http_get("http://www.example.com/file.xml").

    However, I want to be able to search the Global Address List. My problem now is how to authenticate a user to search GAL using REST.

    Any suggestions?
    Mark A. Fien
    The FIEN Group, LLC

    ** Murphy was an optimist ***

Similar Threads

  1. Can recives but can't send mail outgoing
    By hoangkk in forum Installation
    Replies: 9
    Last Post: 09-21-2009, 08:35 PM
  2. Replies: 35
    Last Post: 07-17-2009, 04:52 PM
  3. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 02:41 PM
  4. March 6 EDU Summit @ Yahoo UK
    By mmorse in forum Zimbra in Education
    Replies: 0
    Last Post: 02-25-2009, 12:22 PM
  5. Zimbra @ Educause - Orlando
    By justcdl123 in forum Zimbra in Education
    Replies: 0
    Last Post: 08-19-2008, 01:15 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
  •