如何保证 Compact Framework Webservice 调用中的数据传递?
我们在非常不稳定的 WLAN 环境中拥有一个移动应用程序。 将数据发送到网络服务器可能会导致超时或丢失 WLAN 连接。
我们如何确保我们的数据正确交付? 设备上是否有可能安装 Web 服务可靠消息传递 (WSRM)?
目前没有选择 MSMQ。
We have a mobile Application in a very unsteady WLan Environment. Sending Data to a webserver could result in a timeout or in a lost WLan connection.
How do we ensure, that our data is delivered correctly? Is there a possibility of having Web Services Reliable Messaging (WSRM) on the device?
MSMQ is no option at the moment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不支持 WSRM。 一种可靠的机制是确保 Web 服务在收到数据后用 ack 响应上传(即同步调用),或者当您开始上传时返回一个事务 ID,然后您可以将其发送回稍后再发送服务,以确保在本地删除之前已交付该服务。
WSRM isn't supported. A reliable mechanism is to ensure that either the Web Service responds to the upload with an ack after the data has been received (i.e. a synchronous call) or that when you start the upload you get back a transaction ID that you can then send back to the service at a later point to ensure that it has been delivered before local deletion.