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 04-26-2010, 01:05 PM
Partner (VAR/HSP)
 
Posts: 70
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 ***
Reply With Quote
  #2 (permalink)  
Old 04-26-2010, 07:10 PM
Outstanding Member
 
Posts: 703
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.
Reply With Quote
  #3 (permalink)  
Old 04-27-2010, 03:17 AM
Loyal Member
 
Posts: 92
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
Reply With Quote
  #4 (permalink)  
Old 04-29-2010, 11:43 AM
Partner (VAR/HSP)
 
Posts: 70
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 ***
Reply With Quote
  #5 (permalink)  
Old 04-29-2010, 01:16 PM
Partner (VAR/HSP)
 
Posts: 70
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 ***
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.