在iOS上使用SOAP Web服务 [英] Consuming SOAP web services on iOS

查看:139
本文介绍了在iOS上使用SOAP Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试利用web服务编写iPad应用程序。我知道一个Web服务的概念,并已在C#/ .NET中使用它。我需要知道如何在iPad上做到这一点。

I am trying to write applications for iPad which take advantage of web services. I know the concept of a web service and have used it in C#/.NET. I need to know how to do this on an iPad. Can anyone recommend a good book or reading material on webservices for iOS?

推荐答案

如果你使用的是iOS框架,你的解决方案将会涉及使用 NSURLConnection NSRL请求。有关详细的Apple文档,请访问此处。根据我的经验,你希望将这些API调用包装在你自己的客户端请求中,它可以构建你的应用逻辑理解的数据传输对象。

If you're using iOS frameworks, your solution will involve using NSURLConnection or NSRLRequest. In-depth Apple documentation can be found here. In my experience, you want to wrap those API calls in your own client request that can build data transfer objects your application logic understands.

如果你正在寻找第三方框架来访问RESTful Web服务,请查看许多iOS框架选项的此答案

If you're looking at 3rd party frameworks to access a RESTful web service, take a peek at this answer for a number of iOS framework options.

对于SOAP服务,请查看这里

For SOAP services, take a look here.

对于处理数据,它取决于您的Web服务生成什么样的数据。有几个框架和库,可以使它很容易使用XML或 JSON

As for processing the data, it depends what kind of data your web service produces. There are several frameworks and libraries that can make it easy to consume XML or JSON.

根据我的经验,有关这个主题的最好的书是高级iOS编程

In my experience, the best book on the subject is Advanced iOS Programming.

这篇关于在iOS上使用SOAP Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆