如何连接iPhone和Web服务并获取XML数据? [英] How can I connect iPhone and web service and get XML data?

查看:122
本文介绍了如何连接iPhone和Web服务并获取XML数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用iPhone连接到Web服务器,但现在我必须将iPhone连接到Web服务。我不知道该怎么做,在线没有演示或课程。

I know how to connect to web server using an iPhone but now I have to connect the iPhone to a web service. I don't know how to do it and there is no demo or class available online.

有没有任何想法?

感谢

推荐答案

您可能会发现这个教程,名为Intro SOAP Web服务有用。

You might find this tutorial, called Intro to SOAP Web Services useful. He shows how to package a request, send it to a web service, and read the response.

如果您需要一些帮助XML解析,有一个 TouchXML 库,它会给你一个很好的XML文档。只是小心内存使用。

If you need some help with XML parsing, there is the TouchXML library which will give you a nice xml "document" to work with. Just be cautious of memory usage.

如果您必须解析大型XML讯息,这关于Cocoa中的libxml和xmlreader的教程将向您展示如何使用低级别的事件式解析器解析XML。

If you have to parse large XML message this tutorial about libxml and xmlreader in Cocoa will show you how to parse XML with the lower-level event-style parsers.

这篇关于如何连接iPhone和Web服务并获取XML数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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