ActiveSync Sync command problems RRS feed

  • Question

  • When I try and send a Sync command to my test ActiveSync server it seems I can only use a subset of the available commands in the specification. When I use certain property tags in the Sync XML I receive a Status 4 'Protocol Error' code, even though these should be valid. When I use only the GetChanges property I do get a proper response, however I'd like to be able to specify how many items to return etc.

    I've included the XML snippet that I'm sending: the commented out lines are lines that were attempted but caused a Status 4.

    <?xml version="1.0" ?>
    <Sync xmlns="AirSync:">
    			<!--	<Fetch>-->
    			<!--		<ServerId>1:323</ServerId>-->
    			<!--	</Fetch>-->

    Is there any reason why these properties shouldn't be supported?

    The GetOptions command for the server returns the following (truncated):

    Server: Microsoft-IIS/6.0,
        X-Powered-By: ASP.NET,
        Pragma: no-cache,
        Public: OPTIONS, POST, Allow: OPTIONS, POST,
        MS-Server-ActiveSync: 6.5.7653.19,
        MS-ASProtocolVersions: 1.0,2.0,2.1,2.5,

    Saturday, June 2, 2012 10:35 AM

All replies

  • UPDATE: I've been able to use a Proxy to catch the messages being passed from the Android Emulator Email client and it seems that it IS able to successfully use the properties that don't work in my Java Client. I've tried to replicate exactly the HTTP messages sent from Android in my Java client but I always get a status 4 message from Exchange.

    Anyone able to help?

    Thursday, June 7, 2012 7:59 AM