Results 1 to 3 of 3

Thread: Help with SOAP/XML appointment or event on the calendar.

  1. #1
    aelmessiry is offline Starter Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    5

    Angry Help with SOAP/XML appointment or event on the calendar.

    Hi,
    I'm trying to create an appointment or event on the calendar.
    the XML used for authentication: (it is working correctly)
    <Envelope xmlns=\"http://www.w3.org/2003/05/soap-envelope\">
    <Body>
    <AuthRequest xmlns=\"urn:zimbraAccount\">
    <account by=\"name\">user@domain.com</account>
    <password>mypassword</password>
    </AuthRequest>
    </Body>
    </Envelope>

    I use the token in the next section,
    the XML used for creating appointment: (not working)
    I need help for finding the right structure for the Header and Body

    <Envelope xmlns=\"http://www.w3.org/2003/05/soap-envelope\">
    <Header>
    <context xmlns=\"urn:zimbra\">
    <authToken>0_a006ff69dc034968a8b60f18ffe96d264e4d9 4f0_69643d33363a36616263653530382d333165342d343165 312d626661662d3664323630623664373363373b6578703d31 333a313234393531303930313935343b747970653d363a7a69 6d6272613b</authToken>
    <sessionId>152526</sessionId>
    </context>
    </Header>
    <Body>
    <CreateAppointmentRequest xmlns=\"urn:zimbraAccount\">
    <s d=\"20080131T100000\" />
    <e d=\"20080131T120000\" />
    <at a=\"him\" />
    </CreateAppointmentRequest>
    </Body>
    </Envelope>


    Any help, pointers?

  2. #2
    Zahit is offline Junior Member
    Join Date
    Jul 2010
    Location
    Mexico
    Posts
    6
    Rep Power
    4

    Default

    <soap:Text>invalid request: missing required element: m</soap:Text>

  3. #3
    Zahit is offline Junior Member
    Join Date
    Jul 2010
    Location
    Mexico
    Posts
    6
    Rep Power
    4

    Default

    Hi mate, i was testing the soap classes to send appointment with perl and i did can extract this xml to a valid request

    <ns0:CreateAppointmentRequest xmlns:ns0="urn:zimbraMail">
    <m l="10">
    <e a="mail@server.ner" t="t"/>
    <su>Cita paciente: Arturo Roldan Ferrer</su>
    <mp ct="multipart/alternative">
    <mp ct="text/plain">
    <content>adfdfdf</content>
    </mp>
    <mp ct="text/html">
    <content></content>
    </mp>
    </mp>
    <inv allday="false" loc="Ubicacion 1.2" name="Cita paciente: Arturo Roldan Ferrer" type="event">
    <s d="20100730T010100"/>
    <e d="20100730T090100"/>
    <or a="mail@server.ner" d="Display Name"/>
    </inv>
    </m>
    </ns0:CreateAppointmentRequest>


    of course you need to put the header in the xml file

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Leopard iCal and ZCS iSync connector, duplicate events
    By nsmarler in forum CalDAV / CardDAV / iSync
    Replies: 7
    Last Post: 03-21-2011, 10:03 AM
  2. [SOLVED] Copy appointment to another calendar
    By Cocophone in forum General Questions
    Replies: 9
    Last Post: 01-22-2010, 01:11 PM
  3. Replies: 0
    Last Post: 02-09-2009, 03:33 PM
  4. Replies: 0
    Last Post: 08-04-2008, 07:44 AM
  5. Calendar: Event versus Appointment
    By reverber in forum Administrators
    Replies: 2
    Last Post: 11-20-2007, 09:55 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
  •