Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: [SOLVED] SOAP access to the Zimbra server

  1. #11
    Coilcore is offline Senior Member
    Join Date
    Nov 2005
    Posts
    55
    Rep Power
    9

    Default com.zimbra.cs.client.*

    Kevin, thanks for the quick reply. I did look at com.zimbra.cs.client.* which was what the second part of my rant was about.

  2. #12
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    9

    Default

    We agree that WSDL would be nice, it is just a matter of resources, given that we are working on fixing bugs and adding features and trying to get a major release out.

    Also, a WSDL only gives you syntax, so it is only a part of the picture. We need to work on more detailed docs that include semantics (sessions, authTokens, etc), which is also a large chunk of work. It will eventually get done, either by us or the community.

  3. #13
    orlanth is offline Junior Member
    Join Date
    Aug 2006
    Posts
    7
    Rep Power
    8

    Default

    Quote Originally Posted by tim brennan
    Take a look at ZimbraServer/docs/soapadmin.txt, you'll see:

    Code:
    <CreateAccountRequest>
      <name>...</name>
      <password>...</password>*
      <a n="attr-name>...</a>+
    </CreateAccountRequest>
    
    <CreateAccountResponse>
      <account name="{name}" id="{id}">
        <a n="...">...</a>+
      </account>  
    </CreateAccountResponse>
    
    Notes:
      accounts without passwords can't be logged into
      name must include domain (uid@name), and domain specified in name must exist
      default value for zimbraAccountStatus is "active"  
    
    Access: domain admin sufficient
    From that point it should be relatively easy to modify one of the existing perl scripts -- I'd suggest starting with getacct.pl since it is already an admin command (the admin namespace is different and the login params are slightly different than non-admin)
    The getacct.pl works fine, but modifying it to user CreateAccountRequest is not simple.

    Your perl scripts seem to use custom perl modules, Soap11.pm, Soap12.pm,Soap.pm, XmlDoc.pm, XmlElement.pm.

    Is there any documentation on how to use these modules?

    Trying to use the CreateAccountRequest using the same syntax as the GetAccountRequest, XmlDoc.pm throws an error and is expecting a hash value instead of a scalar. Has anyone in-house written a create account using perl, java, php, etc with soap?

  4. #14
    downtheline is offline Junior Member
    Join Date
    Nov 2006
    Posts
    8
    Rep Power
    8

    Default

    Quote Originally Posted by orlanth
    The getacct.pl works fine, but modifying it to user CreateAccountRequest is not simple.

    Your perl scripts seem to use custom perl modules, Soap11.pm, Soap12.pm,Soap.pm, XmlDoc.pm, XmlElement.pm.

    Is there any documentation on how to use these modules?

    Trying to use the CreateAccountRequest using the same syntax as the GetAccountRequest, XmlDoc.pm throws an error and is expecting a hash value instead of a scalar. Has anyone in-house written a create account using perl, java, php, etc with soap?
    Just bumping this post.
    Has any one written a create account using java with soap?

  5. #15
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    9

    Default

    There is a now a SoapProvisioning class that has all the provisioning APIs in Java. See ProvUtil.java (main for zmprov) for details on how to use it.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  6. #16
    kirme3 is offline Trained Alumni
    Join Date
    Apr 2006
    Location
    Illinois
    Posts
    194
    Rep Power
    9

    Default Exactly what we need...

    Where can we get this at???

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

    Default It's in the standard source distribution

    com.zimbra.cs.account.soap.SoapProvisioning.java
    Bugzilla - Wiki - Downloads - Before posting... Search!

  8. #18
    bgibby's Avatar
    bgibby is offline Member
    Join Date
    May 2007
    Location
    Perth, Western Australia
    Posts
    14
    Rep Power
    8

    Default Exact Path...

    Quote Originally Posted by jgao View Post
    There're quite a few perl scripts in ZimbraServer/src/perl/soap for manipulating messgaes/appointments.

    Could you provide more perl examples for soapadmin such as adding/deleting/updating account?

    Thanks.
    Newb question...what's the exact path to "ZimbraServer"? I've a default install in /opt/zimbra but no idea as to where the src directory is.

    Thanks
    Bradley q

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

    Default Subversion

    You'll have to check out the source from the public Subversion repository.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  10. #20
    fstakem is offline New Member
    Join Date
    Jun 2007
    Posts
    3
    Rep Power
    8

    Default Java Example

    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.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 26
    Last Post: 04-19-2011, 09: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, 06:29 PM
  4. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  5. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12: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
  •