SyncML 与 Android 和 PHP Web 服务
我只是好奇是否有人使用过 SyncML(同步标记语言)以及它是否是一个很好的标准。
我们需要它来将信息从平板电脑设备同步到网络服务器(通过网络服务),反之亦然。
SyncML 是否太臃肿?我正在研究一些 SyncML API,感到非常令人畏惧。因此,重要的选择是使用这个标准或构建内部解决方案。
即使我在内部这样做,我们也必须创建某种方式来定义我们发送的数据,因此一定要考虑构建 XML 模式,或者使用 JSON。
有什么意见吗?有想法吗?
I was just curious if anyone has used SyncML (Synchronization Markup Language)
and if it's a good standard to use.
We'd need it for synchronising information from a tablet device to a web server (via web service) and vice versa.
Is SyncML too bloated? I was looking at some of the SyncML APIs and was quite daunting. So the big choice is to use this standard or build an in-house solution.
Even if I did do it in-house, we'd have to create some sort of way to define the data we're sending up, so definitely looking at building an XML schema, or alternatively use JSON.
Any opinions? Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SyncML 和 ActiveSync(可能还有其他一些准备好的解决方案)具有显着的优势:有一些实现可能是稳定的。另一个显着的优势是协议是经过设计和测试的。如果您设计自己的协议,则必须同步考虑所有可能的情况。因此,即使您自己的协议可以更简单一些,您也可能需要做更多的工作,并且结果可能不太稳定。
SyncML and ActiveSync (and possibly some other prepared solution) have a signifficant advantage: There are some implementations that are probably stable. Another signifficant advantage is that the protocols are designed and tested. If you design your own protocol, you'll have to think about all possible situations in synchronization. So, even if your own protocol can be a bit simpler, you probably have to do more work and the result can be less stable.
您可以通过 PHPSyncMl 在 php 上创建syncml服务器。
另外,syncml客户端可以参考android 本身 。
顺便说一句,这些代码可能会在以后的版本中丢失。
You can create syncml server on php through PHPSyncMl .
Besides,The syncml client can reference android itself .
by the way, these code maybe lost in the after version.