我正在尝试让我的 Windows Phone 8 MDM 系统正常工作。当前设备正确注册并发出初始 SyncML 请求。它还响应服务器初始响应中的查询,但我认为它不喜欢其中的某些内容。原因是它使用重试间隔与服务器建立额外的连接,然后不再连接。
当我手动启动连接时,它可以工作,但没有发生自动连接。奇怪的是,SyncML SessionID 计数器在内部以指定的时间间隔增加,但设备甚至没有尝试连接服务器。
这是我的 SyncML 协议
客户端启动:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>DM/1.2</VerProto>
<SessionID>E</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>https://ssl.../enrollment/omadmservice.php</LocURI>
</Target>
<Source>
<LocURI>IMEI:35...64</LocURI>
<LocName>riho</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-md5</Type>
</Meta>
<Data>SoFh6khg4awLYXn2PQOOwQ==</Data>
</Cred>
</SyncHdr>
<SyncBody>
<Alert>
<CmdID>2</CmdID>
<Data>1201</Data>
</Alert>
<Replace>
<CmdID>3</CmdID>
<Item>
<Source>
<LocURI>./DevInfo/DevId</LocURI>
</Source>
<Data>IMEI:35...64</Data>
</Item>
...
</Replace>
<Final/>
</SyncBody>
</SyncML>
服务器响应:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>DM/1.2</VerProto>
<SessionID>E</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>IMEI:35...64</LocURI>
</Target>
<Source>
<LocURI>https://ssl.../enrollment/omadmservice.php</LocURI>
<LocName>MDMServer</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-md5</Type>
</Meta>
<Data>ryJ+boSmdCoO8BzxXcYSxg==</Data>
</Cred>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>1</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<Data>212</Data>
</Status>
<Status>
<MsgRef>1</MsgRef>
<CmdRef>2</CmdRef>
<CmdID>2</CmdID>
<Cmd>Alert</Cmd>
<Data>200</Data>
</Status>
<Status>
<CmdID>3</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<Cmd>Replace</Cmd>
<Data>200</Data>
</Status>
<Get>
<CmdID>4</CmdID>
<Item>
<Target>
<LocURI>./Vendor/MSFT/Registry/HKLM/Software/Microsoft/DeviceEncryption/Enabled</LocURI>
</Target>
</Item>
</Get>
</SyncBody>
</SyncML>
客户端发送它的响应:
<SyncML xmlns="SYNCML:SYNCML1.2">
<SyncHdr>
<VerDTD>1.2</VerDTD>
<VerProto>DM/1.2</VerProto>
<SessionID>E</SessionID>
<MsgID>2</MsgID>
<Target>
<LocURI>https://ssl.../enrollment/omadmservice.php</LocURI>
</Target>
<Source>
<LocURI>IMEI:35...64</LocURI>
</Source>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>1</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<Chal>
<Meta>
<Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-md5</Type>
<NextNonce xmlns="syncml:metinf">kjjz6FyCYuYm9VUsSaHfKmj98GGfh9yeLvv8hlMNZak=</NextNonce>
</Meta>
</Chal>
<Data>212</Data>
</Status>
<Status>
<CmdID>2</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>4</CmdRef>
<Cmd>Get</Cmd>
<Data>200</Data>
</Status>
<Results>
<CmdID>3</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>4</CmdRef>
<Item>
<Source>
<LocURI>./Vendor/MSFT/Registry/HKLM/Software/Microsoft/DeviceEncryption/Enabled</LocURI>
</Source>
<Meta>
<Format xmlns="syncml:metinf">int</Format>
</Meta>
<Data>1</Data>
</Item>
</Results>
<Final/>
</SyncBody>
</SyncML>
服务器存储数据并断开连接。
任何人都可以在我的实现中找到错误吗?客户对服务器还有什么期望?