简体   繁体   English

记住iPhone客户端的.NET Web服务编程

[英].NET web service programming with iPhone clients in mind

I need to write a .NET web service which will be consumed exclusively by an iPad app. 我需要编写一个.NET Web服务,该服务将仅由iPad应用程序使用。

We are leaning towards using REST but could someone let me know whether this is the easier way (from the iPhone side). 我们倾向于使用REST,但有人可以让我知道这是否是更简单的方法(从iPhone方面而言)。

REST/JSON combined with WCF on the .NET side seem to be the way to go with iPhone/iPad apps. 将REST / JSON与.NET方面的WCF结合起来似乎是iPhone / iPad应用程序使用的方法。

Here is a really good tutorial on how to connect using Json: 这是一个关于如何使用Json进行连接的非常好的教程:

http://www.mobileorchard.com/tutorial-json-over-http-on-the-iphone/ http://www.mobileorchard.com/tutorial-json-over-http-on-the-iphone/

And you can download the iPad client JSON library from here: 您可以从此处下载iPad客户端JSON库:

http://code.google.com/p/json-framework/ http://code.google.com/p/json-framework/

Hope this helps. 希望这可以帮助。

Is this a web app or is there going to be an iOS native app that needs to access the data? 这是一个Web应用程序,还是会有一个iOS本机应用程序需要访问数据? Actually...not sure that matters...either way, as long as you are using standard web technologies to pass the data back and forth, you should be fine...though your particular iOS app developer may have a particular preference. 实际上...不确定这两种关系...无论哪种方式,只要您使用标准的Web技术来回传递数据,就可以了...尽管您的特定iOS应用程序开发人员可能会有特定的偏好。

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

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