
Originally Posted by
vikramsra
will you be able to help me with that
i haven't yet tried it, but will be trying it today or tomorrow. In principal it's easy, though - you send off the request and read the auth token from the response. According to the docs the request/response look like:
Code:
<AuthRequest xmlns="urn:zimbraAccount">
[<account by="name|id|foreignPrincipal">...</account>]
[<password>...</password>]
[<preauth timestamp="{timestamp}" expires="{expires}">{computed-preauth-value}</preauth>]
[<authToken>...</authToken>]
[<virtualHost>{virtual-host}</virtualHost>]
[<prefs>[<pref name="..."/>...]</prefs>]
[<attrs>[<attr name="..."/>...]</attrs>]
[<requestedSkin>{skin}</requestedSkin>]
</AuthRequest>
<AuthResponse">
<authToken>...</authToken>
<lifetime>...</lifetime>
<session .../>
<refer>{mail-host}</refer>
[<prefs><pref name="{name}" modified="{modified-time}">{value}</pref>...</prefs>]
[<attrs><attr name="{name}">{value}</attr>...</attrs>]
[<skin>{skin-name}</skin>]
</AuthResponse>