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 11-14-2006, 12:13 PM
Junior Member
 
Posts: 8
Default help to get started

Hi,
I'm working on Mac OS X ( new to it) and am trying to create a java program (xcode) to automatically create users in zimbra using the soap api. How do I need to configure my environment? or please provide some links or docs.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-14-2006, 02:28 PM
Zimbra Employee
 
Posts: 1,434
Default Cli?

Would the zmprov CLI make your life easier?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 11-14-2006, 02:51 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by dkarp
Would the zmprov CLI make your life easier?
dkarp, Thanks for the reply.
Nope, I want to develop a java program to accomplish it.

Thanks.
Reply With Quote
  #4 (permalink)  
Old 11-14-2006, 03:20 PM
Zimbra Employee
 
Posts: 1,434
Default Ok..

Sure. Look at ZimbraServer/docs/soap-admin.txt for the syntax of the relevant SOAP requests. Make sure to connect to the admin port and URI and to get an admin auth token before doing any admin SOAP requests. And don't forget to use the correct admin namespace.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 11-14-2006, 03:38 PM
Junior Member
 
Posts: 8
Default

Thanks again.
I downloaded that file from sourceforge. where can I download the test file tester.java , I was unable to find it on sourceforge.

I have never compiled a file concerning zimbra on my machine, so when I do get a hold of tester.java file what all java packages do I need to download and can I download them from sourceforge.

My main objective as I said before is to automatically be able to create and delete accounts in zimbra.

Thanks
Reply With Quote
  #6 (permalink)  
Old 11-14-2006, 03:50 PM
Zimbra Employee
 
Posts: 1,434
Default Steps to interoperating via SOAP

1. construct valid SOAP
2. send SOAP to appropriate port/URI on Zimbra server
3. profit!

Not sure what tester.java is, but you shouldn't need it.

(And, again, your life will probably be made immeasurably easier if you just Runtime.exec() zmprov.)
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #7 (permalink)  
Old 11-14-2006, 07:18 PM
Zimbra Employee
 
Posts: 274
Default

or program against the Zimbra Java Provisioning API just like zmprov does.

Your compile and runtime classpath should include all the jars in /opt/zimbra/lib/jars

Look at the code for ProvUtil.java which exercises the Provisioning API.

Caveat emport: Provisioning.java API is not guaranteed as much as the SOAP APIs are for compatibility.

http://zimbra.svn.sourceforge.net/vi...va?view=markup
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #8 (permalink)  
Old 11-16-2006, 07:47 AM
Junior Member
 
Posts: 8
Default

I'm thinking of using the SOAP API to implement on my project.
I just downloaded and installed Eclipse ( running it on Win XP, once it works I will try it on OSX).
I have a few newbee questions (I'm new to Java, SOAP and Zimbra):
1) How are Java programs implementing SOAP in Zimbra , is it using the APACHE SOAP or its own implementation?
2) This file Tester.Java ( http://zimbra.svn.sourceforge.net/vi...=1&view=markup
How can I run this on my Eclipse platform? Where do I download the required packages? if its from SourceForge do I download a build?
3) I'm trying to automatically create accounts in zimbra and in the below link I don't find the implementation for CreateAccounts ( for example I don't find a java file like LmcCreateAccountRequese.Java and LmcCreateAccountResponse.Java?
http://zimbra.svn.sourceforge.net/vi...s/client/soap/

I hope its not too confusing.

Thanks.
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.