locked
Exchange ActiveSync Provision Command Bad Request RRS feed

  • Question

  • I am trying to run the provision command on my Exchange server but keep getting 400 Bad Request. As far as I can tell I'm sending in the correct information. The only thing I can think is the WBXML is incorrect, but I don't know to verify it. 

    Here is what I'm sending in, Does the WBXML look correct (Tried Airsync WBXML 1.3 and 1.2)?

    URL: https://mobile.[myexchangeserver].com/Microsoft-Server-ActiveSync?Cmd=Provision&User=jack&DeviceID=123412341234&DeviceType=iOS Authorization = "Basic wekrju283j"; //Base 64 encoded auth, garbage for this posting "Content-Length" = 104; "Content-Type" = "application/vnd.ms-sync.wbxml"; "MS-ASProtocolVersion" = "12.1"; "User-Agent" = MyApp; "X-MS-PolicyKey" = 0; Body (converted to WBXML before sending): <?xml version="1.0" encoding="utf-8"?> <Provision xmlns="Provision:"> <Policies> <Policy> <PolicyType>MS-EAS-Provisioning-WBXML</PolicyType> </Policy> </Policies> </Provision> WBXML (1.2): 02 00 25 6A 41 50 72 6F 76 69 73 69 6F 6E 00 50 6F 6C 69 63 69 65 73 00 50 6F 6C 69 63 79 00 50 6F 6C 69 63 79 54 79 70 65 00 2D 2F 2F 41 49 52 53 59 4E 43 2F 2F 44 54 44 20 41 69 72 53 79 6E 63 2F 2F 45 4E 00 44 00 44 0A 44 13 44 1A 03 4D 53 2D 45 41 53 2D 00 83 00 03 69 6E 67 2D 57 42 58 4D 4C 00 01 01 01 01

    WBXML (1.3): 03 00 25 6A 41 50 72 6F 76 69 73 69 6F 6E 00 50 6F 6C 69 63 69 65 73 00 50 6F 6C 69 63 79 00 50 6F 6C 69 63 79 54 79 70 65 00 2D 2F 2F 41 49 52 53 59 4E 43 2F 2F 44 54 44 20 41 69 72 53 79 6E 63 2F 2F 45 4E 00 44 00 44 0A 44 13 44 1A 03 4D 53 2D 45 41 53 2D 00 83 00 03 69 6E 67 2D 57 42 58 4D 4C 00 01 01 01 01

    Thursday, July 11, 2013 3:50 PM