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 07-31-2007, 01:51 AM
New Member
 
Posts: 4
Default SOAP or REST

If I would like to search calendars/check availability and add events from plone. Which is an appropriate between SOAP and REST
Thanks.
Reply With Quote
  #2 (permalink)  
Old 07-31-2007, 09:03 PM
Zimbra Employee
 
Posts: 1,434
Default

Either should work, though you'll probably find the SOAP interface more suitable for your needs (especially for appointment creation).
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 07-31-2007, 11:00 PM
New Member
 
Posts: 4
Default Create Appointment

Could you please give me an example of creation of an appointment to bongkot@hvlmail.com at 9 Aug 2007 at 10.00 AM
I used this SOAP but it return Internal Server Error.
<CreateAppointmentRequest xmlns=\"urn:zimbraAdmin\">
<m>
<su>SOAP test appointment</su>
<inv loc="2000 Main St., Emeryville, CA 94608" name="SOAP test appointment" type="event">
<comp fba="B">
<s d="20070809T220000"/>
<dur h="2"/>
<or a="bongkot@hvlmail.com" d="bongkot"/>
<at a="steve@hvlmail.com"d="steve" role="ROLE" ptst="PARTSTAT" />
</comp>
</inv>
</m>
</CreateAppointmentRequest>

I have already put authToken in SOAP header

Thanks for help
Reply With Quote
  #4 (permalink)  
Old 08-01-2007, 02:09 AM
New Member
 
Posts: 4
Default Create Appointment

Is it nessary to put sessionId in Soap header like this.

<soap:Header>
<context xmlns="urn:zimbra">
<authToken>token is here</authToken>
<sessionId id="9"/>
</context>
</soap:Header>
Reply With Quote
  #5 (permalink)  
Old 08-01-2007, 05:13 AM
Zimbra Employee
 
Posts: 1,434
Default

<sessionId/> is not necessary, but if you don't specify either a <sessionId/> or (better yet) <nosession/> then you're going to start accumulating 1 session in the server per request, which is bad.

If you want to see sample valid SOAP for your server version, turn on the debug window for the AJAX client and use the app. All the SOAP sent between client and server should appear in that window. (Search the forums for instructions on how to turn on the debug window.)
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
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.