从iPhone访问Web服务

编程入门 行业动态 更新时间:2024-10-24 08:24:42
本文介绍了从iPhone访问Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有关从iPhone拨打网络服务的问题?

  • 任何人都有任何有关这方面的建议教程?
  • 任何人都有通过这些电话实施安全性的最佳做法。
  • 有没有人为了轻松的iPhone服务通话而创建或查看任何共享库或封装容器?
  • 解决方案

    这在大多数移动设备上要简单得多, / p>

    最佳实践 - 使用操作(NSOperation)来处理请求 - 这是我发现减少网络调用的线程复杂性,

    您可以考虑使用JSON进行调用 - 此库非常有用: github/stig/json-framework/

    但是你应该很容易使用正常的iPhone命令来发出网络请求。

    教程:SeismicXML或去看看斯坦福讲座CS193P - 演讲9应该是你的一杯茶!

    www.stanford.edu/class/cs193p/cgi-bin/index.php

    Questions on calling web services from iPhone?

  • Anyone have any recommended tutorials on doing this?
  • Anyone have any best practices on implementing security with these calls?
  • Has anyone made or seen any shared libraries or wrappers for easy web service calls from the iPhone?
  • 解决方案

    This is much simpler to do than on most mobile devices - and more robust (in my opinion).

    Best practices - use operations (NSOperation) to handle the requests - this is the best way I have found to reduce the complexities of threading with web calls and take everything off the main thread.

    For security make HTTPS calls.

    You might want to consider using JSON for the call - then this library is useful : github/stig/json-framework/

    However you should find it very easy to make web requests with the normal iPhone commands.

    Ah yes a tutorial: SeismicXML or go and check out the Stanford lectures for CS193P - lecture 9 should be your cup of tea!

    www.stanford.edu/class/cs193p/cgi-bin/index.php

    更多推荐

    从iPhone访问Web服务

    本文发布于:2023-11-08 14:14:17,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1569599.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:iPhone   Web

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!