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 05-24-2006, 03:55 PM
Member
 
Posts: 14
Default SOAP interface--How do I retrieve all appointments on the server?

What's the ideal way to retrieve all appointment items through SOAP interface? I wish I could have a similar one as GetContactsRequest.

1. use GetAppointmentRequest, it makes the id required and only return one.
2. use GetApptSummariesRequest, but the response is not detail enough to build a list a ICalendar
3. use SyncRequest w/o token to get a list of apptId, then group all GetAppointmentRequests to a batch request
4. use SyncRequest with a valid oldest token, such as "1" -- this could be the best solution if the token number is never recycled, please confirm.
Reply With Quote
  #2 (permalink)  
Old 05-24-2006, 04:43 PM
sam sam is offline
Zimbra Employee
 
Posts: 821
Default

2 or 3 are the way to go.

If you go with 3 you should probably have an upper limit on the number of GetAppointmentRequests you send in a single BatchRequest.
__________________
Sam Khavari

:: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::
Reply With Quote
  #3 (permalink)  
Old 05-24-2006, 10:07 PM
Zimbra Employee
 
Posts: 228
Default

Have you looked at GetICalRequest? Or the REST interface? These both return iCalendar data if you can deal with/want that...
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #4 (permalink)  
Old 05-25-2006, 09:28 AM
Member
 
Posts: 14
Default

Quote:
Originally Posted by sam
2 or 3 are the way to go.

If you go with 3 you should probably have an upper limit on the number of GetAppointmentRequests you send in a single BatchRequest.
what's the max number for a single batch request?
Reply With Quote
  #5 (permalink)  
Old 05-25-2006, 09:29 AM
Member
 
Posts: 14
Default

Quote:
Originally Posted by schemers
Have you looked at GetICalRequest? Or the REST interface? These both return iCalendar data if you can deal with/want that...
GetICalRequest returns only one item based on the id. What's "REST" interface?
Reply With Quote
  #6 (permalink)  
Old 05-25-2006, 09:30 AM
Member
 
Posts: 14
Default

So, what's the problem if I use No.4?
Reply With Quote
  #7 (permalink)  
Old 05-25-2006, 10:36 AM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by JackyQiu
what's the max number for a single batch request?
Technically there is none. Realistically it'd be a huge SOAP/XML packet if you tried to put 100's or 1000's in the same request. Pick a reasonable max like 32 and see how that works for you. If it's too slow or the request/response is too large then back it off. If you that works ok then feel free to try some more.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #8 (permalink)  
Old 05-25-2006, 10:38 AM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by JackyQiu
What's "REST" interface?
http://en.wikipedia.org/wiki/Represe...State_Transfer
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #9 (permalink)  
Old 05-25-2006, 10:40 AM
Zimbra Employee
 
Posts: 4,792
Default

Quote:
Originally Posted by JackyQiu
So, what's the problem if I use No.4?
If you do 4) you'd just send no sync token to get ALL the items. Of course this is a bit wasteful as you really shouldn't have to request ALL every time.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #10 (permalink)  
Old 05-25-2006, 11:30 AM
Member
 
Posts: 14
Default

Quote:
Originally Posted by KevinH
If you do 4) you'd just send no sync token to get ALL the items. Of course this is a bit wasteful as you really shouldn't have to request ALL every time.
A valid oldest token is different than no token beucase the content and format of the resposne message are totally different. For a no-token or invalid token(i.e. "-1") sync request, it returns all item's ids. With a good token, it returns all detailed appointment data. That's why I suggested to add a filter to SyncRequest.
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.