Results 1 to 8 of 8

Thread: help to get started

  1. #1
    downtheline is offline Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    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.

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    Default Cli?

    Would the zmprov CLI make your life easier?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    downtheline is offline Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    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.

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  5. #5
    downtheline is offline Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    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

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  7. #7
    anand is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    274
    Rep Power
    9

    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!

  8. #8
    downtheline is offline Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 10-02-2006, 08:44 AM
  2. Tomcat Started But not displaying Zimbra Login screen
    By AnilKumarYalla in forum Developers
    Replies: 1
    Last Post: 06-21-2006, 04:45 AM
  3. postfix not started on FC4
    By vpoorboy in forum Developers
    Replies: 7
    Last Post: 04-24-2006, 10:46 PM
  4. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  5. Getting started
    By DaveyBob in forum Administrators
    Replies: 4
    Last Post: 10-07-2005, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •