SOAP and IOS Development

I am developing an iOS application that uses web services (SOAP / WSDL). I built it as follows: I create my message for soap manually (using soapui), and I call it this way:

NSData *xmlData = // a method to construct my soap xml (my xml is in resources folder of my application which I have generated with soapui) NSURL *url = [NSURL URLWithString:@"https:myUrlWSDL"]; self.currentRequest = [ASIFormDataRequest requestWithURL:url]; [self.currentRequest appendPostData:xmlData]; [self.currentRequest setDelegate:self]; [self.currentRequest startAsynchronous]; 

This works great.

My question is: why do other programmers use soap clients like gSoap to call their web services? Why don't they use something simple as I described? (this is not mine) Why are there so many clients and utilities for soap?

Thank you for your responses.

+4
source share
4 answers

When you start logging into WS-Security and other difficulties with services, it makes less and less sense to analyze SOAP requests / responses, determine encryption, etc., by writing it yourself. Especially if you need to support multiple platforms. Consequently, gSOAP is a C ++ library that will work on Android and iOS, which already does this.

+4
source
+3
source

the question is more philosophical, someone may not know the method that you used above, or prefer something else ... who knows and who cares?

0
source

I used the http://easywsdl.com generator. It works great with my WS

0
source

All Articles