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 05-22-2008, 02:41 PM
Junior Member
 
Posts: 5
Default How to create appointments via soap.

I am trying to migrate calendars from another mail program to zimbra. I can't find any help other than soap.txt. To figure out what attributes are needed and what they are to make a appointment I used zmmailbox getAppointmentSummaries to get an id of an appointment that I made in a test mailbox. I then took this ID and put into my soap request for an appointment which looks as far as I can tell just like the vague example in soap.txt. Unfortunately I am getting back an error in the soap response saying unknown_document. If anyone can point me in the right direction it would be much appreciated.

Here is my Soap Request and Soap Response.
-----SoapRequest at 5/22/2008 3:32:56 PM

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><context xmlns="urn:zimbraAccount"><authToken>0_7898748a576 ffa744d136ede95b06dd351a00375_69643d33363a63656638 343339332d396162332d346261302d623432662d6465626431 623535303861303b6578703d31333a31323131363634363935 3430333b747970653d363a7a696d6272613b6d61696c686f73 743d31363a3136362e37302e3135362e39333a38303b</authToken></context></soap:Header><soap:Body><GetAppointmentRequest id="258" sync="1" includeContect="1" xmlns="urn:zimbraAccount" /></soap:Body></soap:Envelope>

-----SoapResponse at 5/22/2008 3:32:57 PM

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><context xmlns="urn:zimbra"/></soap:Header><soap:Body><soap:Fault><soap:faultcode >soap:Client</soap:faultcode><soap:faultstring>unknown document: GetAppointmentRequest</soap:faultstring><soap:detail><Error xmlns="urn:zimbra"><Code>service.UNKNOWN_DOCUMENT</Code><Trace>btpool0-15:1211491897569:0f65fdbb547d570d</Trace></Error></soap:detail></soap:Fault></soap:Body></soap:Envelope>

Thanks...........................
Reply With Quote
  #2 (permalink)  
Old 05-22-2008, 02:50 PM
Special Member
 
Posts: 151
Default

This is what I send in:

<GetItemRequest xmlns="urn:zimbraMail">
<item id="$calendarID"/>
</GetItemRequest>

Calendar ID is something like: 841-857

So I think you are just missing the -XXX part in your request.

And it is get item request.
Reply With Quote
  #3 (permalink)  
Old 05-22-2008, 03:16 PM
Junior Member
 
Posts: 5
Default I figured out what it was

Your reply actually showed me the error in my ways. I was sending the message with the wrong urn. I was using urn:zimbraAccount. It needed to be urn:ZimbraMail. Thanks phingers.
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.