Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: [SOLVED] SOAP access to the Zimbra server

  1. #21
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    Default

    Quote Originally Posted by fstakem View Post
    Has anyone done a SOAP project in java and written something about how to go about this? I have gone through the file Tester.java trying to understand the interface. I was not able to find any jars in the ZimbraServer directory to link to. Where are the jars that are needed to compile a project? I tried including the source but ran out of memory on the heap when doing a compile.
    Check out ZimbraStore.jar in ZimbraServer, and the associated jars in ZimbraCommon.

  2. #22
    Join Date
    Jun 2007
    Posts
    3
    Rep Power
    8

    Default

    There is no file ZimbraStore.jar in the zimbraserver directory. I downloaded the source and there is only one jar in the zimbra server directory.

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

    Default You have to build it

    I gather that you need to build it. Go into the ZimbraServer directory and do an
    Code:
    ant jar
    The generated jarfiles should be under ZimbraServer/build.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  4. #24
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    8

    Default

    can you give me a download link to ZimbraStore.jar instead?

  5. #25
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    Default

    Quote Originally Posted by AddGun View Post
    can you give me a download link to ZimbraStore.jar instead?
    You are going to need to build your project anyways if you are writing code against it. The ZimbraStore.jar is in the production releases of Zimbra (you can cp it from your actual server version), but if you are having problems getting that to compile, you are going to have problems using the code.

  6. #26
    Join Date
    Jun 2007
    Posts
    3
    Rep Power
    8

    Default

    Well you are making the assumption that everyone uses linux for development so they can simply set up a box and run the install. We are using Linux on the servers, but do development in Windows. Since most of the people who will be working on this with us will be running windows I don't think that is unreasonable.

    The ant script is quite large. I went through parts of it but hesitated from making modifications. We need to get the jars to build java apps for any platform. This includes mobile platforms. Can the Java SOAP interface be run on CLDC devices?

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

    Default

    Quote Originally Posted by fstakem View Post
    Well you are making the assumption that everyone uses linux for development so they can simply set up a box and run the install. We are using Linux on the servers, but do development in Windows. Since most of the people who will be working on this with us will be running windows I don't think that is unreasonable.
    I develop Zimbra on Windows. ant will still run on Windows.

    If that doesn't work for you, you can get a prebuilt the zimbrastore.jar file from any of the binary releases.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  8. #28
    Join Date
    Apr 2007
    Posts
    13
    Rep Power
    8

    Default Perl Module to simplify Soap access

    I whipped together a perl module that makes it really easy to access Zimbra with soap right now it only deals with Calendar actions and appointments, but you can extend it easily with some basic Perl know how. Check out the thread I posted here:

    http://www.zimbra.com/forums/develop...ss-zimbra.html

    The module is attached to that thread, and a text file on how to use the module.

  9. #29
    Join Date
    Apr 2008
    Location
    Bangalore, India
    Posts
    11
    Rep Power
    7

    Default Re:

    Probably, the reason WSDL does not exist and does not make sense is that Zimbra HTTP requests/responses do not seem to be web-services to begin with.

    A web-service will never respond with a JSON response.

    Ofcourse there is a SOAP response as well now (achieved by removing the type="js" from the format element of SOAP request) - but it is not a must. And the SOAP response seems to be added as an after thought (just a guess!).

    And, the original request/responses seem to be tuned towards AJAX UI - hence JSON.

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

    Default

    Quote Originally Posted by jasper View Post
    Ofcourse there is a SOAP response as well now (achieved by removing the type="js" from the format element of SOAP request) - but it is not a must. And the SOAP response seems to be added as an after thought (just a guess!).
    Actually, we started off with vanilla XML SOAP. We later introduced a shim layer (Element.java) so that the SOAP marshalling code could generate either JSON or XML...
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Replies: 26
    Last Post: 04-19-2011, 10:24 AM
  2. Replies: 9
    Last Post: 03-01-2008, 08:21 PM
  3. Removing hostname from hosts file fixed prob.
    By lemur in forum Installation
    Replies: 10
    Last Post: 06-13-2007, 07:29 PM
  4. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 04:48 PM
  5. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 01:58 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
  •