Securely send your data using ssl.
Converting the cart to XML can be done using the XML Framework / lib, but you will have to write code for this. For example, touchXML:
TouchXML is an easy replacement for the Cocoa NSXML * class cluster. It is based on the open source libxml2 open source library.
Here is a good tutorial.
The source has moved a bit, can be found here
To your second question: It is difficult and can become hoarse. However, if you do not want to switch to an API based on login / account creation, I will have these ideas.
Check the "result" of the webView with the UIWebViewDelegate protocol using the webViewDidFinishLoad: method. The βresultβ may be: successful account creation or successful login.
In this way, you can access the body of the page using the NSURLRequest property of the web view. Or use something like this using javascript:
NSString *html = [webView stringByEvaluatingJavaScriptFromString: @"document.body.innerHTML"];
You will have to do parsing, although look for something, such as a marker, with which you can contact the order for a final check.
You could also create a unique order line on the device in the first place and first send it to enter / create a profile in order to slightly increase security and submit it for verification.
source share