简体   繁体   English

将数据从Android传输到MS SQL Server

[英]Transferring data from Android to MS SQL Server

We are extending a PDA enterprise application which is in Windows to Android. 我们正在将Windows中的PDA企业应用程序扩展到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. 当销售人员访问商店时,他们将从PDA发出发票并将信息发送到IIS托管的后端。 MS SQL Server (2008 R2) runs as the data base server. MS SQL Server(2008 R2)作为数据库服务器运行。

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). 可以通过GPRS,WIFI进行通信,也可以通过USB电缆通过PDA将PDA连接到笔记本电脑进行通信(如果GPRS连接在特定位置不可用)。

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). 当前,我们在Windows Mobile中拥有该应用程序,并已部署WCF(Windows Communication Foundation)服务以连接到后端(在某些实例中,我们还使用sql Server复制)。

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)? 随着我们对Android的新扩展(虽然后端显然仍然是相同的),将数据从客户端PDA传输到服务器的最佳机制是什么(在任何单个实例中,大约有1000个PDA都在运行且字节数很大)数据上传;速度至关重要)?

I am not sure whether the question is well suited here. 我不确定这个问题是否适合这里。 Do let me know if it is not. 让我知道是否不是。

Thanks in advance. 提前致谢。

Publish your WCF service with basicHTTPBinding and access it from Android using HTTP requests. 使用basicHTTPBinding发布WCF服务,并使用HTTP请求从Android访问它。 This is described in detail here: How to Consume WCF Service with Android 此处详细介绍: 如何在Android上使用WCF服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM