使用Android和PHP Web服务的SyncML。

时间:2022-04-01 07:38:21

I was just curious if anyone has used SyncML (Synchronization Markup Language) and if it's a good standard to use.

我只是好奇是否有人使用过SyncML(同步标记语言),以及它是否是一个好的标准。

We'd need it for synchronising information from a tablet device to a web server (via web service) and vice versa.

我们需要它将信息从平板设备同步到web服务器(通过web服务),反之亦然。

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.

SyncML过于臃肿的吗?我正在查看一些SyncML api,这让我感到非常害怕。因此,最大的选择是使用这个标准或者构建一个内部解决方案。

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.

即使是我自己做的,我们也必须创建某种方式来定义我们发送的数据,所以一定要构建XML模式,或者使用JSON。

Any opinions? Ideas?

任何意见吗?想法吗?

2 个解决方案

#1


2  

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.

SyncML和ActiveSync(可能还有其他准备好的解决方案)具有显著的优势:有一些实现可能是稳定的。另一个显著的优势是协议被设计和测试。如果您设计自己的协议,您将不得不考虑同步中的所有可能情况。因此,即使您自己的协议可以简单一点,您可能需要做更多的工作,结果也可能不太稳定。

#2


0  

You can create syncml server on php through PHPSyncMl .

您可以通过PHPSyncMl在php上创建syncml服务器。

Besides,The syncml client can reference android itself .
by the way, these code maybe lost in the after version.

此外,syncml客户端还可以引用android本身。顺便说一下,这些代码可能在后版本中丢失了。

#1


2  

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.

SyncML和ActiveSync(可能还有其他准备好的解决方案)具有显著的优势:有一些实现可能是稳定的。另一个显著的优势是协议被设计和测试。如果您设计自己的协议,您将不得不考虑同步中的所有可能情况。因此,即使您自己的协议可以简单一点,您可能需要做更多的工作,结果也可能不太稳定。

#2


0  

You can create syncml server on php through PHPSyncMl .

您可以通过PHPSyncMl在php上创建syncml服务器。

Besides,The syncml client can reference android itself .
by the way, these code maybe lost in the after version.

此外,syncml客户端还可以引用android本身。顺便说一下,这些代码可能在后版本中丢失了。