4.3 Fetching Task Data with the ItemOperations Command
The following example demonstrates a client’s request to retrieve information from the server for a particular task, and the server’s response. The client sends an ItemOperations command request ([MS-ASCMD] section 2.2.1.10) to the server, and the server responds with an ItemOperations command response ([MS-ASCMD] section 2.2.1.10). This example assumes that the server has assigned a Collection ID of 11 to the Tasks collection.
Request:
-
<?xml version="1.0" encoding="utf-8"?> <ItemOperations xmlns:airsync="AirSync:" xmlns:airsyncbase="AirSyncBase:" xmlns="ItemOperations:"> <Fetch> <Store>Mailbox</Store> <airsync:CollectionId>11</airsync:CollectionId> <airsync:ServerId>11:1</airsync:ServerId> <Options> <airsyncbase:BodyPreference> <airsyncbase:Type>1</airsyncbase:Type> <airsyncbase:TruncationSize>256</airsyncbase:TruncationSize> <airsyncbase:AllOrNone>0</airsyncbase:AllOrNone> </airsyncbase:BodyPreference> </Options> </Fetch> </ItemOperations>
Response:
-
<?xml version="1.0" encoding="utf-8"?> <ItemOperations xmlns:airsync="AirSync:" xmlns:tasks="Tasks:" xmlns:airsyncbase="AirSyncBase:" xmlns="ItemOperations:"> <Status>1</Status> <Response> <Fetch> <Status>1</Status> <airsync:CollectionId>11</airsync:CollectionId> <airsync:ServerId>11:1</airsync:ServerId> <airsync:Class>Tasks</airsync:Class> <Properties> <airsyncbase:Body> <airsyncbase:Type>1</airsyncbase:Type> <airsyncbase:EstimatedDataSize>0</airsyncbase:EstimatedDataSize> </airsyncbase:Body> <tasks:Subject>Complete This Week's Test Run </tasks:Subject> <tasks:Importance>2</tasks:Importance> <tasks:UtcStartDate>2009-11-18T08:00:00.000Z</tasks:UtcStartDate> <tasks:StartDate>2009-11-18T00:00:00.000Z</tasks:StartDate> <tasks:UtcDueDate>2009-11-27T08:00:00.000Z</tasks:UtcDueDate> <tasks:DueDate>2009-11-27T00:00:00.000Z</tasks:DueDate> <tasks:Complete>0</tasks:Complete> <tasks:Sensitivity>2</tasks:Sensitivity> <tasks:ReminderTime>2009-11-27T16:00:00.000Z</tasks:ReminderTime> <tasks:ReminderSet>1</tasks:ReminderSet> </Properties> </Fetch> </Response> </ItemOperations>