开发者

SOAP and XML Response Parsing Samples for iPhone/iPad? [closed]

开发者 https://www.devze.com 2023-03-14 19:30 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

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.

T开发者_如何学运维hanks in advance! ~KS


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.

How to access SOAP services from iPhone.

Hope this helps anyone with a similar question! -Karoly

0

精彩评论

暂无评论...
验证码 换一张
取 消