Results 1 to 3 of 3

Thread: Newbie: Best API to connect a zimlet to a remote service

  1. #1
    Join Date
    Mar 2010
    Rep Power

    Default Newbie: Best API to connect a zimlet to a remote service

    I would like to write a zimlet that talks to a remote service (J2EE/Spring) and am wondering which is the best protocol to use to develop a simple API that the zimlet can use to communicate with this service (Soap/Rest/Ajax?).

    The service would require authentication from the zimlet. I am wondering which is the best way to provide this if for example I use a SOAP API. Do I need to write a separate zimlet to login to the remote service? If so, can this login be stored as a cookie using zimlets so that the user doesn't need to keep entering their credentials?

    Later I would like to re-use this api for iPhones.

    Many thanks ,
    Last edited by jodonova; 03-19-2010 at 09:38 AM.

  2. #2
    Join Date
    Mar 2008
    Stanford, CA
    Rep Power


    Build a RESTful web service and protect it with OAuth. The zimlet will need to store the consumer, access and request tokens, but it never needs users' usernames and passwords. OAuth can also work for mobile devices and third party web sites.

    Look at the flickr and the social zimlets (esp. the twitter support) - both use OAuth and RESTful APIs.

    Apps really need to stop asking users for their credentials to access other apps.

  3. #3
    Join Date
    Mar 2010
    Rep Power


    Thanks for that advise scotty - I will check that all out,

Similar Threads

  1. Samba and POSIX undeploy problem
    By catnipper in forum Zimlets
    Replies: 0
    Last Post: 09-02-2009, 10:51 AM
  2. zmclamdctl is not running after upgrade
    By Darren in forum Installation
    Replies: 24
    Last Post: 10-10-2008, 09:10 AM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  4. [SOLVED] Install Problem in Ubuntu 6.06 Server
    By xtimox in forum Installation
    Replies: 16
    Last Post: 03-27-2008, 09:36 AM
  5. Can't send or receive mails from Zimbra
    By ppurama in forum Administrators
    Replies: 4
    Last Post: 11-14-2005, 09:17 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