简体   繁体   English

iOS和OSX之间的通信

[英]Communication between iOS and OSX

I'm developing a medical record system for iOS and OSX. 我正在为iOS和OSX开发医疗记录系统。 The idea is to have the iPad devices contain the presentation layer and just a tiny bit business layer, while the actual business layer is running on a Mac OSX machine. 想法是让iPad设备包含表示层和少量业务层,而实际业务层则在Mac OSX计算机上运行。

I would really appreciate thoughts on which basic communication to use between the iPads and the OSX machine. 我真的很想知道在iPad和OSX机器之间使用哪种基本通信的想法。 Web services? 网页服务? Game kit? 游戏套件? Remote objects? 远程对象? The actual data must be protected by SSL. 实际数据必须受SSL保护。

Your best option is to write a web service and expose an XML API. 最好的选择是编写Web服务并公开XML API。 Then, enforce SSL constraints on all resources and program your iOS device to use the standard HTTP verbs to communicate with the server. 然后,对所有资源强制实施SSL约束,并对iOS设备进行编程,以使用标准的HTTP动词与服务器进行通信。 Depending on the web platform you select, a number of wrappers exist to help with the communication. 根据您选择的Web平台,存在许多包装程序来帮助进行通信。 For example: 例如:

iPhone on Rails iPhone on Rails

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

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