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 01-22-2007, 08:26 AM
Intermediate Member
 
Posts: 15
Question Delete an Appointment via SOAP ?

How can I delete an Appointment via SOAP API ?
Reply With Quote
  #2 (permalink)  
Old 01-22-2007, 08:28 AM
Intermediate Member
 
Posts: 15
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 !
Reply With Quote
  #3 (permalink)  
Old 01-22-2007, 09:32 AM
sam sam is offline
Zimbra Employee
 
Posts: 821
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 ] :: :: [ . ] ::
Reply With Quote
  #4 (permalink)  
Old 01-23-2007, 01:14 AM
Intermediate Member
 
Posts: 15
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 ?
Reply With Quote
  #5 (permalink)  
Old 01-23-2007, 10:39 AM
sam sam is offline
Zimbra Employee
 
Posts: 821
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 ] :: :: [ . ] ::
Reply With Quote
  #6 (permalink)  
Old 01-24-2007, 07:27 PM
Intermediate Member
 
Posts: 15
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 ?
Reply With Quote
  #7 (permalink)  
Old 01-25-2007, 01:35 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #8 (permalink)  
Old 01-31-2007, 12:15 AM
Intermediate Member
 
Posts: 15
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 ?
Reply With Quote
  #9 (permalink)  
Old 01-31-2007, 08:32 AM
Zimbra Employee
 
Posts: 1,434
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!
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.