Get Updates By E-mail 

Article Written By:
Johann Dowa

Tool: SOAP Based Web Services Made Easy On The iOS Platform

In the past I’ve written quite about some of the great projects for consuming REST based web services on iOS devices such as MKNetworkKit, AFNetworking, and RestKit.

On the weekend I received a question from a developer trying to work with a SOAP based web service asking about up to date available resources for iOS and Objective-C.

I haven’t written much about SOAP based web services, but if you have no choice other than to work with a SOAP based service directly within your apps here are a few choices.

An Easy Objective-C Project Generation Tool Using WSDL Files

The easiest way to go is to use a tool known as SudzC by Jason Kichline.

What SudzC allows you to do is upload a WSDL file for the SOAP based service, and it will automatically generate a working Xcode example project (complete with comments and document) including other source files for using the web service such as  those for LibXML, and Jason’s own code for working with a SOAP based service.

Recently SudzC has been recently updated for the iOS 5 SDK and can now generate projects with support for ARC.

You can create the projects right on the SudzC website here.

SudzC is open source, and you can find the Github repo here.

An Example Project On Consuming Web Services

You can learn quite a bit looking through the generated project from SudzC, but you may also want to take a look at Adrian Kosmaczewski’s demonstration project written in Objective-C on consuming web services from an iOS application here.

A C++ Library

If you decide that you want to go the library route, one library that is recommended to those asking about consuming a SOAP based web service on the iOS paltform is Gsoap. I can’t understand why you’d want to go this route unless you are looking for a solution that would be similar across different platforms.

Hopefully this helps those working with a SOAP based web service.

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.