Results 1 to 3 of 3

Thread: How to create appointments via soap.

  1. #1
    Join Date
    May 2008
    Rep Power

    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="" xmlns:xsi="" xmlns:xsd=""><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=""><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>


  2. #2
    Join Date
    Jan 2007
    Fort Lauderdale, FL
    Rep Power


    This is what I send in:

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

    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.

  3. #3
    Join Date
    May 2008
    Rep Power

    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.

Similar Threads

  1. PHP SOAP create appointment example
    By AddGun in forum Developers
    Replies: 13
    Last Post: 09-27-2010, 04:41 PM
  2. Canceling appointments through SOAP
    By gdeyoung in forum General Questions
    Replies: 7
    Last Post: 04-16-2008, 08:25 AM
  3. Cancel And Modify Appointments SOAP Question
    By noleman16 in forum Developers
    Replies: 2
    Last Post: 01-11-2008, 10:18 AM
  4. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 03-31-2007, 11:47 PM
  5. Replies: 11
    Last Post: 05-25-2006, 11:40 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