在搜索了一段时间后,我无法找到任何有关在iPhone/iPad应用程序中使用SOAP接口的有用示例/教程。如果有人知道有关SOAP和/或解析响应的XML的好的教程,我将非常感激。
提前致谢! ~KS
- (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];
}
虽然这篇文章有些年头了,但下面的链接似乎是一个非常受欢迎的问题,所以我相信还有一些其他的资源可用,但我最终没有使用。
希望这能帮助到有类似问题的人! -Karoly