Passing IIS basic authentication credentials from within a UIWebView

I have been trying to find the proper way to provide basic authentication credentials to access a website from within a UIWebView in my app. The simplest way to do this would be,

http://username:password@yoursite.com

But this is not a secure way to pass credentials to access a website. After some research online and going through Apple documentation, I realised the proper way to do this is to initiate a NSURLConnection and catch the authentication challenge in the willSendRequestForAuthenticationChallenge delegate method and pass NSURLCredential as a response for the challenge. Continue reading

Advertisements

Consuming a SOAP Web Service within an iOS app

In this tutorial we will look at how to consume a SOAP Web service from within an iOS application. I will be using a .NET based web service for this tutorial. Since the mode of communication between both the platforms will be SOAP XML, the same example I believe will hold good for any SOAP XML Web service. Continue reading