SOAP on IOS - considering new approach - ios

Hey guys Im currently working on ios application which is requesting data using SOAP. Till this point i have been using ASIHTTPRequest to send request and handle response. But i realy can't get client certificate working (yes, i tried replacing code in if-statement in asihttprequest.m, and i also fixed many other bugs).
So due to this problem and to fact, this framework is not longer supported i have decided to use another framework. I am thinking about AFNetworking but it doesnt realy seem easy to use this one for SOAP and im not realy into overriding its method beacause im realy new to this whole apple/objective-c platform.
So what are you guys suggesting ? What is best way to send SOAP requests (and handle responses) to WS with client certificate ?

OK, i've abandoned any 3rd party libraries and wrote the whole web service interface using NSURLConnection and NSMutableRequest. It was foolish to depend on 3rd party software. It is most definitely way to go, especially if you want to use client certificate you can use
-(void)connection:(NSURLConnection *)con didReceiveAuthenticationChallenge ....

Related

How to connect from your iOS app to a backend server? how to read, modify and fetch data to backend server?

I am new in developing iOS applications. I like to learn communication between my app and a specific back-end server(which is written in ruby). I would like to learn how to read, fetch and modify data on the back-end server? I do not have any idea where I should start? I am very welcome if you could refer me to any online resource/tutorial for this topic.
First, you have to create an API in ruby. Here is a tutorial on how to do it: https://www.codeschool.com/courses/surviving-apis-with-rails.
After that, when you are sure that your API is working correctly, you can write a service for HTTP communication. You can do it by yourself, but in my opinion, a much better option would be using the third party for that. I prefer using AFNetworking: https://github.com/AFNetworking/AFNetworking.
You can also use Heroku. First you can create your API and make some tests then implement to your server.

how to ios chat implement with simple mysqlite DB?

I am implementing ios chat application i have client side coding, how to send the text to receiver side using Mysqlite with PHP.
Please assist me.
Thanks in advance
Not exactly sure what you're looking for, but this is a good tutorial introducing you to NSURLSession in iOS 7. That shows you how you can post requests to a web server and deal with data coming back. Handling the request on the server side with PHP is pretty straight-forward; you treat it like you would a normal form.

Automating a request and response based app

I am trying to automate a native iOS app, which involves a customer sending a request and a sales representative receives the request and responds.
Which tool should I use?
I want to run some UI specific test cases too.
Most automating tools don't support a request and response based app.
Please help.
Thanks
AFNetworking is probably the most used solution for response/request (REST api) applications. It is open source, actively maintained and can be found here.
Also it is pretty easy to implement and has well written documentation.

What is the best way to communicate via RESTful-Http with an web-service from an iPhone App

My iphone App should be able to communicate with a Webserver via RESTful HTTP.
So now i want to figure out what is the best approach of doing this. Is there a lightweight framework out there which which provides the functionality i want ? With functionality i mean : doing simple http requests with a few lines of code. I read a lot about RESTkit and testet it inside my Project but after upgrading to 0.20 everything seems really confusing to me.
So my question is :
What is the best approach of communicating from an iPhone with a Webservice via RESTFul Http ?
If you only need to communicate with a Web service for a simple task without local caching (i.e offline access to the data), simply go with AFNetworking.
If you need to communicate with a Web service and also need mapping to objects and caching to Core Data in your app, trust me, Restkit will save you A LOT of time at the long run. My app is built around a web service and once configured properly, it's a joy to work with, especially the new version (0.2.x).
Personally, my approach is to use NSURLConnection, Grand Central Dispatch and NSJSONSerialization. I write a web service class for each project with simple convenience functions reflecting the needs of each individual app. I of course reuse some of the code across projects, but I don't make any concious effort to write reusable code.
I too have tried RESTKit and found it too confusing/complicated to use.
I personally use just NSURLConnection from standard SDK of iOS. It has not less or much more then I need.

Access Web Services on BlackBerry

What are the ways of accessing web services on a BlackBerry device?
I've learned about XML for webservices. We use SAX and DOM parsers in Blackberry. Are there any more ideas like this?
I also want to know what KSOAP is and how to use it on BlackBerry.
AFAIK, kSOAP is a library that lets you post soap requests to your web service. If the service accepts a simple POST request, the easiest way would be to use HttpConnection. Here's a good tutorial
I've also used kXML2 for XML parsing, and that has worked out well for me till now.
Additionally, including 3rd party libraries is a pain (kSOAP and kXML), so here's a guide that will hopefully save you some time.
You can try http://wsclient.neurospeech.com/wsclient/java-android-blackberry/ which supports soap code generation for blackberry with additional library that manages everything, it generates native typed soap client and calling them is very easy. Otherwise you will be spending lot of time in xml to your types and types to xml conversions and so on. Plus date and many things are little complex to handle.

Resources