简体   繁体   English

将数据从移动应用程序(iPhone,Android)传递到ASP.NET Web应用程序

[英]Passing data from mobile app (iPhone, Android) to ASP.NET web application

can we pass data from mobile phone application (iPhone app / Android app) to ASP.NET website application? 我们如何将数据从手机应用程序(iPhone应用程序/ Android应用程序)传递到ASP.NET网站应用程序? Does it need to be on a secure channel like SSL? 是否需要像SSL这样的安全通道? ASP.NET website, I was thinking of having a WCF service to get data from the mobile phone application, but what would be the better data format? 我在ASP.NET网站上考虑过要使用WCF服务从手机应用程序中获取数据,但是更好的数据格式是什么? REST? 休息? Json? 杰森 Plain text? 纯文本?

If you host a WCF service, then the natural choice would be SOAP. 如果托管WCF服务,则自然选择SOAP。 In that case, you don't have to care about the format at all, as the code for calling your web methods will be generated automatically if you use an appropriate SOAP library. 在这种情况下,您根本不必关心格式,因为如果使用适当的SOAP库,则将自动生成用于调用Web方法的代码。 See this SO question to get some ideas for iOS and this question for Android. 这太问题得到适用于iOS的一些想法和这个问题的Android。

SSL is normally a good thing to have, especially when you care about your users' security (which you should). SSL通常是一件好事,特别是当您关心用户的安全(应该这样做)时。

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

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