4.1.3 Phase 3: Client Acknowledges Receipt and Application of Policy Settings
The client acknowledges the policy download and policy application by using the temporary PolicyKey obtained in phase 2. In this case, the client has indicated compliance and provided the correct PolicyKey. Therefore, the server responds with the "final" PolicyKey which the client then uses in the X-MS-PolicyKey header of successive command requests to satisfy policy enforcement.
Request
-
POST /Microsoft-Server-ActiveSync?User=deviceuser&DeviceId=6F24CAD599A5BF1A690246B8C68FAE8D&DeviceType=PocketPC&Cmd=Provision HTTP/1.1 Accept-Language: en-us MS-ASProtocolVersion: 14.0 Content-Type: application/vnd.ms-sync.wbxml X-MS-PolicyKey: 1307199584 User-Agent: ASOM Host: EXCH-B-003 <?xml version="1.0" encoding="utf-8"?> <Provision xmlns="Provision:"> <Policies> <Policy> <PolicyType>MS-EAS-Provisioning-WBXML</PolicyType> <PolicyKey>1307199584</PolicyKey> <Status>1</Status> </Policy> </Policies> </Provision>
Response
-
HTTP/1.1 200 OK Connection: Keep-Alive Content-Length: 63 Date: Mon, 01 May 2006 20:15:17 GMT Content-Type: application/vnd.ms-sync.wbxml Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 MS-Server-ActiveSync: 8.0 Cache-Control: private <?xml version="1.0" encoding="utf-8"?> <Provision xmlns="Provision:"> <Status>1</Status> <Policies> <Policy> <PolicyType> MS-EAS-Provisioning-WBXML </PolicyType> <Status>1</Status> <PolicyKey>3942919513</PolicyKey> </Policy> </Policies> </Provision>