简体   繁体   English

iPhone应用程序的Web服务建议

[英]Web service advice for an iPhone app

I am currently working on an iPhone app that will have a user log in, enter a workorder or building, and the app will display workorder/building information. 我目前正在使用iPhone应用程序,该应用程序将具有用户登录,输入工作订单或建筑物的功能,并且该应用程序将显示工作订单/建筑物的信息。 The user will then be able to edit some of the data and submit it to the server. 然后,用户将能够编辑一些数据并将其提交给服务器。 The backend database is a MySQL server. 后端数据库是MySQL服务器。 What is the best web service to use for this situation? 在这种情况下,最佳的Web服务是什么? I've been reading about SOAP, JSON, etc. but I honestly haven't found a good description of the pros/cons of each and how well they work with an iPhone app. 我一直在阅读有关SOAP,JSON等的信息,但老实说,我还没有很好地描述它们的优缺点以及它们与iPhone应用程序的配合情况。 Any and all help (or links to useful reading) would be greatly appreciated! 任何帮助(或有用的阅读链接)将不胜感激!

Ruby On Rails or PHP is your best bet for the web services layer that goes between the phone and the MySQL and go for JSON as that is the most commonly IPhone Web service data format as it is the one that requires the least amount of data upload by the phone. Ruby On Rails或PHP是介于电话和MySQL之间并选择JSON的Web服务层的最佳选择,因为这是IPhone Web服务数据格式的最常见形式,因为它需要最少的数据上传量通过电话。 Touch JSON is commonly used IPhone framework for this.The RoR or PHP web services layer serves up JSON data based on URL requests by the IPhone. 为此,Touch JSON是iPhone常用的框架.RoR或PHP Web服务层根据iPhone的URL请求提供JSON数据。 There's loads of stuff on this if you google which I did when faced with a similar problem. 如果您使用谷歌搜索时遇到了类似的问题,那上面有很多东西。

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

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