iPhone/iPad 的 SOAP 和 XML 响应解析示例? [英] SOAP and XML Response Parsing Samples for iPhone/iPad?

查看:23
本文介绍了iPhone/iPad 的 SOAP 和 XML 响应解析示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索了一段时间后,我一直找不到关于在 iPhone/iPad 应用程序中使用 SOAP 界面的任何有用的示例/教程.如果有人知道关于响应的 SOAP 和/或 XML 解析的任何好的方面,我将不胜感激.

After searching around for a while, I have been unable to find any helpful samples/tutorials on using a SOAP interface in an iPhone/iPad app. If someone knows of any good ones regarding SOAP and/or XML parsing of the response I would greatly appreciate it.

提前致谢!~KS

推荐答案

好吧,我已经设法使一些工作能够在我的 iPhone 应用程序中发布和接收/查看来自 xcode 的 SOAP 服务的响应4.0.

Alright, well I've managed to get something working that is able to post and receive/view a response from a SOAP service in my iPhone app as of xcode 4.0.

http://abhicodehelp.blogspot.com/2010/12/handling-soap-with-iphone.html

我使用了上面链接中的一些代码,并结合了我自己关于如何使用我在下面添加的用户名和密码进行实际身份验证的一些探索.

I used bits of code from the above link in combination with some of my own exploration with regards on how to actually authenticate with a username and password which I've added below.

- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
{
    NSURLCredential *myCreds = [[NSURLCredential alloc] initWithUser:@"**USERNAME**" password:@"**PASSWORD**" persistence:NO];

    [challenge.sender useCredential:myCreds forAuthenticationChallenge:challenge];
    [myCreds release];
}

虽然很旧,但当被问到时,下面的链接似乎是一个更受欢迎的问题,所以我确定还有一些我最终没有使用的可用资源.

While old, the link below seemed to be a much more popular question when asked so im sure there are some more resources available that I didn't end up using.

如何从 iPhone 访问 SOAP 服务.

希望这对有类似问题的人有所帮助!-卡罗利

Hope this helps anyone with a similar question! -Karoly

这篇关于iPhone/iPad 的 SOAP 和 XML 响应解析示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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