Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: SOAP interface--How do I retrieve all appointments on the server?

  1. #1
    Join Date
    May 2006
    Posts
    14
    Rep Power
    9

    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.

  2. #2
    Join Date
    Aug 2005
    Posts
    821
    Rep Power
    11

    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 ] :: :: [ . ] ::

  3. #3
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    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!

  4. #4
    Join Date
    May 2006
    Posts
    14
    Rep Power
    9

    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?

  5. #5
    Join Date
    May 2006
    Posts
    14
    Rep Power
    9

    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?

  6. #6
    Join Date
    May 2006
    Posts
    14
    Rep Power
    9

    Default

    So, what's the problem if I use No.4?

  7. #7
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  8. #8
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Quote Originally Posted by JackyQiu
    What's "REST" interface?
    http://en.wikipedia.org/wiki/Represe...State_Transfer
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  9. #9
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  10. #10
    Join Date
    May 2006
    Posts
    14
    Rep Power
    9

    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.

Similar Threads

  1. initializing ldap...FAILED(256)ERROR
    By manjunath in forum Installation
    Replies: 39
    Last Post: 06-07-2013, 11:27 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 10:19 AM
  5. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •