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.

3 <strong>Protocol</strong> Details<br />

3.1 Common Details<br />

3.1.1 Abstract Data Model<br />

None.<br />

3.1.2 Timers<br />

None.<br />

3.1.3 Initialization<br />

None.<br />

3.1.4 Higher-Layer Triggered Events<br />

None.<br />

3.1.5 Message Processing Events and Sequencing Rules<br />

The client creates request messages consisting of an HTTP header, as specified in [<strong>MS</strong>-ASHTTP], and<br />

the XML command to be performed on the server, as specified in [<strong>MS</strong>-ASHTTP] section 2.2.1. The<br />

request message is sent to the server by the client and a response message is received back from<br />

the server.<br />

3.1.5.1 Downloading Policy Settings<br />

This section specifies how the client downloads policy settings from the server by using the<br />

Provision command (section 2.2.2.12).<br />

The first command the client issues to the server SHOULD be a Provision command, as specified in<br />

[<strong>MS</strong>-ASPROV]. The client can send the HTTP OPTIONS command to the server before sending the<br />

Provision command, to retrieve server settings, but the HTTP OPTIONS command is optional. If<br />

the client sends other commands to the server before sending the Provision command, the server<br />

will return a Status element (as specified in [<strong>MS</strong>-ASPROV] section 2.2.2.53) value of 142 to the<br />

client.<br />

The initial Provision command request MUST contain the provision:PolicyType element (as<br />

specified in [<strong>MS</strong>-ASPROV] section 2.2.2.42), which specifies the format in which the policy settings<br />

are provided. If the provision:PolicyType element is not included in the initial Provision<br />

command request, the server responds with a provision:Status element value of 2. The server<br />

then responds with the provision:PolicyType, provision:PolicyKey (as specified in [<strong>MS</strong>-ASPROV]<br />

section 2.2.2.41), and provision:Data ([<strong>MS</strong>-ASPROV] section 2.2.2.23) elements. The<br />

provision:PolicyKey element is used by the server to mark the state of policy settings on the<br />

client device. The policy settings, in the format specified in the provision:PolicyType element, are<br />

contained in the provision:Data element.<br />

The client device then applies the policy settings that were received from the server and sends an<br />

acknowledgement back to the server in another Provision command request. The<br />

acknowledgement from the client device contains provision:PolicyType, provision:PolicyKey,<br />

and provision:Status elements. The provision:Status element indicates whether the policy<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 />

265 / 369

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

Saved successfully!

Ooh no, something went wrong!