How can I connect iPhone and web service and get XML data?

前端 未结 4 1389
南笙
南笙 2020-12-04 05:58

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

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 06:29

    I've created an open source application for iPhone OS 3.0 that shows how to use REST & SOAP services in iPhone application, using XML (using 8 different iPhone libraries), SOAP, JSON (using SBJSON and TouchJSON), YAML, Protocol Buffers (Google serialization format) and even CSV from a PHP sample app (included in the project).

    http://github.com/akosma/iPhoneWebServicesClient

    The project is modular enough to support many other formats and libraries in the future.

    The following presentation in SlideShare shows my findings in terms of performance, ease of implementation and payload characteristics:

    http://www.slideshare.net/akosma/web-services-3439269

提交回复
热议问题