将数据从 Android 传输到 MS SQL Server
我们正在将 Windows 中的 PDA 企业应用程序扩展到 Android。
该应用程序适用于销售人员。当销售人员访问商店时,他们将从 PDA 中放入发票并将信息发送到托管在 IIS 中的后端。 MS SQL Server (2008 R2) 作为数据库服务器运行。
通信可以通过 GPRS、WIFI 或通过 USB 电缆将 PDA 连接到笔记本电脑(如果 GPRS 连接在某个位置不可用)进行。
目前我们在Windows Mobile中拥有该应用程序,并部署了WCF(Windows Communication Foundation)服务来连接到后端(在某些情况下我们还使用SQL Server复制)。
通过我们对 Android 的新扩展(显然后端仍然相同),将数据从客户端 PDA 传输到服务器的最佳机制是什么(在任何单个实例中,可能有大约 1000 个 PDA 正在运行,并且有许多字节)数据上传的数量;并且速度很重要)?
我不确定这个问题在这里是否合适。如果不是,请告诉我。
提前致谢。
We are extending a PDA enterprise application which is in Windows to Android.
The application is intended for sales persons. When a sales person visits a shop, they will put invoices from the PDA and send the information to the back end which is hosted in IIS. MS SQL Server (2008 R2) runs as the data base server.
Communication could happen through GPRS, WIFI or through connecting the PDA to a lap top via a USB cable (if the GPRS connectivity is not available at a certain location).
Currently we have the application in windows mobile and have deployed WCF (Windows communication foundation) services to connect to the back end (also we use sql server replication at certain instances).
With our new extension to Android (while obviously the back end is still being the same) what would be the best mechanism to transfer data from the client PDA to the server (at any single instance there can be around 1000 PDAs in operation with many bytes of data uploads; and the speed matters)?
I am not sure whether the question is well suited here. Do let me know if it is not.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 basicHTTPBinding 发布 WCF 服务,并使用 HTTP 请求从 Android 访问它。此处详细描述:如何通过 Android 使用 WCF 服务
Publish your WCF service with basicHTTPBinding and access it from Android using HTTP requests. This is described in detail here: How to Consume WCF Service with Android