Results 1 to 5 of 5

Thread: SOAP or REST

  1. #1
    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    8

    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.

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

  3. #3
    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    8

    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

  4. #4
    Join Date
    Jul 2007
    Posts
    4
    Rep Power
    8

    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>

  5. #5
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

Similar Threads

  1. XSD/WSDL Files for the SOAP Server?
    By photoadrian in forum Developers
    Replies: 5
    Last Post: 12-23-2012, 02:32 AM
  2. REST and SOAP Documentation
    By omniplex in forum Developers
    Replies: 2
    Last Post: 10-19-2009, 04:23 AM
  3. Jar For Soap Client
    By wcameron in forum Developers
    Replies: 19
    Last Post: 06-03-2009, 03:04 PM
  4. Get inbox count via rest or soap interface
    By Dirk in forum Developers
    Replies: 10
    Last Post: 03-22-2007, 08:51 AM
  5. Bug with preauth mechanism and SOAP headers?
    By Coilcore in forum Developers
    Replies: 3
    Last Post: 07-20-2006, 11:41 AM

Posting Permissions

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