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 ,