none
ActiveSync client protocol 2.5 edit calendar recurrence exceptions and sync to server problem RRS feed

  • Question

  • Hi,

    I am implementing ActiveSync client protocol, and I am using version 2.5.

    I want to change a single recurrence calendar event on server. So I use <Sync> <Change> command. I read the protocol spec and add <exception> part in my request xml, it looks like this:

    <?xml version='1.0' encoding='utf-8' ?>
    <Sync xmlns="AirSync:" xmlns:P="POOMCAL:">
    <Collections>
    <Collection>
    <Class>Calendar</Class>
    <SyncKey>xx</SyncKey>
    <CollectionId>yy</CollectionId>
    <Commands>
    <Change>
    <ServerId>2:30</ServerId>
    <ApplicationData>
    <P:Timezone>IP7//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==</P:Timezone>
    <P:AllDayEvent>0</P:AllDayEvent>
    <P:StartTime>20090814T070000Z</P:StartTime>
    <P:EndTime>20090814T073000Z</P:EndTime>
    <P:DTStamp>20090814T060254Z</P:DTStamp>
    <P:UID>uid</P:UID>
    <P:Subject>happy recurrence1</P:Subject>
    <P:Body></P:Body>
    <P:Location>happy center1</P:Location>
    <P:Reminder_MinsBefore>15</P:Reminder_MinsBefore>
    <P:Sensitivity>0</P:Sensitivity>
    <P:BusyStatus>2</P:BusyStatus>
    <P:MeetingStatus>0</P:MeetingStatus>
    <P:Recurrence>
    <P:Recurrence_Type>1</P:Recurrence_Type>
    <P:Recurrence_Interval>1</P:Recurrence_Interval>
    <P:Recurrence_DayOfWeek>32</P:Recurrence_DayOfWeek>
    </P:Recurrence>
    <P:Exceptions>
    <P:Exception>
    <P:Exception_StartTime>20090814T070000Z</P:Exception_StartTime>
    <P:Subject>happy recurrence exception1</P:Subject>
    <P:StartTime>20090814T090000Z</P:StartTime>
    <P:EndTime>20090814T093000Z</P:EndTime>
    <P:Location>happy center exception1</P:Location>
    <P:Sensitivity>0</P:Sensitivity>
    <P:BusyStatus>1</P:BusyStatus>
    <P:AllDayEvent>0</P:AllDayEvent>
    <P:MeetingStatus>0</P:MeetingStatus>
    </P:Exception>
    </P:Exceptions>
    </ApplicationData>
    </Change>
    </Commands>
    </Collection>
    </Collections>
    </Sync>

    This is a recurrence event happens on every Friday, start from 2009/8/14 0700000 UTC time, and I want to change the first event time to 2009/8/14 0700000 UTC time. And I also changed Subject and Location.

     Server response me with this:

    <?xml version="1.0"?>
    <!DOCTYPE AirSync PUBLIC "" "http://www.microsoft.com/">
    <Sync>
     <Collections>
      <Collection>
       <Class>Calendar</Class>
       <SyncKey>xx</SyncKey>
       <CollectionId>yy</CollectionId>
       <Status>1</Status>
       <Responses>
        <Change>
         <ServerId>2:30</ServerId>
         <Status>6</Status>
        </Change>
       </Responses>
      </Collection>
     </Collections>
    </Sync>

    I look up the status code 6, it means "Error in client/server conversion". I don't know what this mean. And There's no proper exception samples in the spec, so maybe I lost some required tags when I wrote the request xml.

    The interesting thing is that after I took off the whole <Exceptions> section in my request xml, the <Change> command is responsed status code 1, it's OK!
    So the problem can be sured is inside the <Exceptions> section.

    Any replies and comments will be helpful to me.
    Thanks guys!

    Tony
    Friday, August 14, 2009 10:14 AM

Answers

All replies

  • Hi Tony,

    t
    hanks for your post regarding the ActiveSync protocol specification. We will review your question and update the forum once our investigation is complete.

     


    Regards, Tom Jebo Senior Support Escalation Engineer Microsoft DS Protocol Team
    Friday, August 14, 2009 12:56 PM
    Moderator
  • Hi Tom,

    Thank you very much!
    Looking forward to  your reply!

    Regards,
    Tony
    Tuesday, August 18, 2009 6:37 AM
  • Tony,

    Support for Exchange Server Protocols fall under the Interoperability Principles.  Interoperability Principles covers client protocols to interoperate with Exchange Server 2007 and greater.   The version of Exchange ActiveSync (EAS) that are supported by this forum are 12.1 and greater.

    If you require additional support for earlier versions of EAS, such as 2.5 that ships with Exchange 2003, this is handled as a paid service engagement with Microsoft Partner Advantage Services (MSPA).


    Regards, Tom Jebo Senior Support Escalation Engineer Microsoft DS Protocol Team
    Tuesday, August 18, 2009 1:06 PM
    Moderator