11.01.2015 Views

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Command</strong><br />

request/response<br />

Parent<br />

elements Child elements Data type<br />

Number<br />

allowed<br />

FolderSync command<br />

response (section<br />

2.2.2.4.2)<br />

Changes<br />

(section<br />

2.2.3.24)<br />

ServerId (section<br />

2.2.3.141.3)<br />

ParentId (section<br />

2.2.3.110.2)<br />

DisplayName<br />

(section 2.2.3.45.3)<br />

Type (section<br />

2.2.3.159.3)<br />

container ([<strong>MS</strong>-<br />

ASDTYPE] section<br />

2.2)<br />

0...N<br />

(optional)<br />

2.2.3.7.2 Add (Sync)<br />

The Add element is an optional child element of the <strong>Command</strong>s element in Sync command<br />

requests and an optional child element of the <strong>Command</strong>s element and the Responses element in<br />

Sync command responses. It creates a new object in a collection on the client or on the server.<br />

All elements referenced in this section are defined in the AirSync namespace.<br />

<strong>Command</strong><br />

request/response<br />

Parent<br />

elements Child elements Data type<br />

Number<br />

allowed<br />

Sync command request<br />

(section 2.2.2.19.1)<br />

<strong>Command</strong>s<br />

(section<br />

2.2.3.31)<br />

ClientId (section<br />

2.2.3.27.2)<br />

ApplicationData<br />

(section 2.2.3.10)<br />

Class (section<br />

2.2.3.26.5)<br />

container ([<strong>MS</strong>-<br />

ASDTYPE]<br />

section 2.2)<br />

0...N<br />

(optional)<br />

Sync command response<br />

(section 2.2.2.19.2)<br />

<strong>Command</strong>s<br />

ServerId (section<br />

2.2.3.141.6)<br />

ApplicationData<br />

(section 2.2.3.10)<br />

container<br />

0...N<br />

(optional)<br />

Sync command response<br />

Responses<br />

(section<br />

2.2.3.131)<br />

ServerId<br />

ClientId<br />

Class<br />

Status (section<br />

2.2.3.152.16)<br />

container<br />

0...N<br />

(optional)<br />

When a new item is being sent from the client to the server, the ClientId element specifies a<br />

temporary ID for the item, which is unique on the client. The ApplicationData element specifies<br />

the item data. The server then responds with an Add element in a Responses element, which<br />

specifies the client ID and the server ID that was assigned to the new item.<br />

When the client sends a Sync command request to the server and a new item has been added to<br />

the server collection since the last synchronization, the server responds with an Add element in a<br />

<strong>Command</strong>s element. This Add element specifies the server ID and data of the item to be added to<br />

the collection on the client.<br />

When the client adds a calendar item, the EndTime element (as specified in [<strong>MS</strong>-ASCAL] section<br />

2.2.2.8) MUST be present in the ApplicationData element. A Status element value of 6 is returned<br />

in the Sync response if the EndTime element is not included.<br />

[<strong>MS</strong>-<strong>ASCMD</strong>] — v20110315<br />

<strong>ActiveSync</strong> <strong>Command</strong> <strong>Reference</strong> <strong>Protocol</strong> <strong>Specification</strong><br />

Copyright © 2011 Microsoft Corporation.<br />

Release: Tuesday, March 15, 2011<br />

101 / 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!