Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-2011, 01:57 AM
Intermediate Member
 
Posts: 16
Default REST message formats documentation.

I'm trying to use the REST zimbra interface and all works well but message I receive are hard to understand.
Is there any documentation about such messages ?
Tks
Tullio
Reply With Quote
  #2 (permalink)  
Old 10-07-2011, 08:10 AM
Project Contributor
 
Posts: 92
Default

There is a documentation for REST in source code repository, ZimbraServer/docs/rest.txt.

But I am not sure if it could help you.
So how about showing the messages you've got to us here.
Reply With Quote
  #3 (permalink)  
Old 10-10-2011, 01:46 AM
Intermediate Member
 
Posts: 16
Default

This is a "typical" message I get
<m id="83742" rev="208744" d="1318234892000" s="2396" l="2" cid="83743">
<e d="Marco" t="f" p="MXYZ" a="xyz@qqqqq.it"/>
<su>Re: script cache pin</su>
<fr>Scusate, ho sbagliato destinatari. -- Messaggio originale --</fr>
</m>

Quite cryptic.
Is there any explanation ?

Last edited by tullio0106; 10-18-2011 at 08:54 AM..
Reply With Quote
  #4 (permalink)  
Old 10-11-2011, 11:58 AM
Project Contributor
 
Posts: 92
Default

I guess you have already got it.
But the response format looks xml(SOAP).
So ZimbraServer/docs/soap.txt can help you.
You shold check "GetMsgRequest" or "AddMsgRequest".

Or you can change the format.
You better check this out for that:
ZCS 6.0:Zimbra REST API Reference - Zimbra :: Wiki
Reply With Quote
  #5 (permalink)  
Old 10-12-2011, 12:46 AM
Intermediate Member
 
Posts: 16
Default

My question is very easy I see tags named <m>, <a>, <f> etc... and I shoud immagine what they mean.
Where can I find the meaning ?
XML format is god for me.
Another question You told me about a directory in the server I can't access : where can I find such docs in the net ?
Tks
Reply With Quote
  #6 (permalink)  
Old 10-14-2011, 01:26 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

On your server the docs are in /opt/zimbra/docs

And indeed, the result you get is from SOAP API, not REST API.
Reply With Quote
  #7 (permalink)  
Old 10-16-2011, 01:36 PM
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by tullio0106 View Post
My question is very easy I see tags named <m>, <a>, <f> etc... and I shoud immagine what they mean.
Where can I find the meaning ?
XML format is god for me.
Another question You told me about a directory in the server I can't access : where can I find such docs in the net ?
Tks
Part of the reason for this is simply try and minimize amount of xml transmitting. e generally is envelope, m is message, etc. As mentioned by others, look at the SOAP description to figure it out.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.