Results 1 to 10 of 10

Thread: Delete an Appointment via SOAP ?

  1. #1
    minhle3012 is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    15
    Rep Power
    8

    Question Delete an Appointment via SOAP ?

    How can I delete an Appointment via SOAP API ?

  2. #2
    minhle3012 is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    15
    Rep Power
    8

    Question Get all Appointment ?

    How can I get all Appointment in my mail box by SOAP API ?

    I used SearchRequest with type=appointment all result is all Conversation !

  3. #3
    sam
    sam is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    821
    Rep Power
    11

    Default

    to delete an item:

    <ItemActionRequest op="delete" id="<appt-id>" />

    are you setting the types attribute to appointment?

    <SearchRequest types="appointment" xmlns="urn:zimbraMail">
    <query>in:calendar</query>
    </SearchRequest>
    Sam Khavari

    :: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::

  4. #4
    minhle3012 is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    15
    Rep Power
    8

    Default

    Thanks Sam !

    I resolved my problem, but now I have new another problem :

    How can I get fully an appointment.

    I used GetAppointmentRequest by appointment id and Zimbra response this appointment, but not include attachment files and content of this appointment.

    Is there any request to get this attachment files and content ?

  5. #5
    sam
    sam is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    821
    Rep Power
    11

    Default

    You must call GetMsgRequest with the <xxxx-xxxx> id format to get the attachments for an appt.
    Sam Khavari

    :: :: [ Zimbra ] :: :: [ Bugzilla ] :: :: [ Product Portal ] :: :: [ Wiki ] :: :: [ Downloads ] :: :: [ . ] ::

  6. #6
    minhle3012 is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    15
    Rep Power
    8

    Default

    Yes, I understood your idea.

    GetMsgRequest useful while I create an Appointment (CreateAppointmentRequest)-with attach file- and Zimbra send invite message with this attach file.

    But in other case, when I use SOAP set an Appointment (SetAppointmentRequest) - with attach file- it mean Zimbra will not send any invite message. Zimbra only return an Id of Appointment created.
    I used GetAppointmentRequest to check id above, and response I had - an Appointment but not include attach file and appointment term.

    How can I get attach file and term ?

  7. #7
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Use the UserServlet

    We can't easily inline attachment content because XML doesn't allow non-UTF-8 content. To fetch your attachments, go to the UserServlet (http://server:port/service/home/~/?id=<id>&part=<part>) in the same manner that the web UI uses when you click on an attachment from an apointment.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  8. #8
    minhle3012 is offline Intermediate Member
    Join Date
    Nov 2006
    Posts
    15
    Rep Power
    8

    Default

    It's hard to imagine.
    Is there another way to get attchment file by SOAP ? Not like manipulate with UI above.

    Ex: we can get content mail and attach file of these mail by SOAP, because mail of Zimbra support MIME message format, but can't get content appointment and attach file of these appointment.

    But Appointment :

    <ns2:GetAppointmentResponse ns2:id="563">
    <ns2:appt ns2:rev="514" ns2:s="4406" ns2:l="10" ns2:uid="4183dcdf-0b1f-4742-8a6f-6af7383e607c" ns2:d="1168769987000" ns2:id="563">
    <ns2:inv ns2:compNum="0" ns2:seq="1" ns2:id="567">
    <ns2:tz ns2:stdoff="420" ns2:id="(GMT+07.00) Bangkok / Hanoi / Jakarta" />
    <ns2:replies />
    <ns2:comp ns2:name="Meeting minutes" ns2:x_uid="4183dcdf-0b1f-4742-8a6f-6af7383e607c" ns2:rsvp="0" ns2:fba="B" ns2:isOrg="1" ns2:apptId="563" ns2:status="CONF" ns2:fb="B" ns2:loc="Meeting room 2" ns2:transp="O" ns2:type="event" ns2:compNum="0" ns2:seq="1">
    <ns2:s ns2:tz="(GMT+07.00) Bangkok / Hanoi / Jakarta" ns2:d="20070114T130000" />
    <ns2:e ns2:tz="(GMT+07.00) Bangkok / Hanoi / Jakarta" ns2:d="20070114T140000" />
    <ns2r ns2:url="minhlh@tdilx001.svl.ibm.com" />
    <ns2:at ns2:role="REQ" ns2tst="NE" ns2:url="minhlh@tdilx001.svl.ibm.com" ns2:d="minh le" />
    </ns2:comp>
    </ns2:inv>
    </ns2:appt>
    </ns2:GetAppointmentResponse>

    How can I get appointment content(body appointment) and attach file of an Appointment ?
    Is there Zimbra support MIME format in Appointment ?

  9. #9
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default REST is best

    Quote Originally Posted by minhle3012 View Post
    Is there another way to get attchment file by SOAP ? Not like manipulate with UI above.
    Use the REST interface (a.k.a. the UserServlet). I suggested using the UI to figure out which URL to fetch from, not that you should use the UI to do this!

    Quote Originally Posted by minhle3012 View Post
    Ex: we can get content mail and attach file of these mail by SOAP, because mail of Zimbra support MIME message format, but can't get content appointment and attach file of these appointment.
    Actually, I don't think you can get an appointment's content via SOAP. I think you have to go to do an HTTP GET to the REST interface to fetch attachment content.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  10. #10
    abaral is offline New Member
    Join Date
    Sep 2012
    Posts
    3
    Rep Power
    2

    Default

    I tried with following command but it did not delete the appointment.

    <ItemActionRequest op="delete" id="375" /> I just got the error message Soap error message: 'ERROR: service.UNKNOWN_DOCUMENT: This id is the apptId , I have used.


    Looking for help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  3. Jar For Soap Client
    By wcameron in forum Developers
    Replies: 19
    Last Post: 06-03-2009, 02:04 PM
  4. Bug with preauth mechanism and SOAP headers?
    By Coilcore in forum Developers
    Replies: 3
    Last Post: 07-20-2006, 10:41 AM
  5. delete appointment error
    By arozell in forum Users
    Replies: 3
    Last Post: 10-04-2005, 07:50 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
  •