Reputation: 4551
I am developing an IOS application, which uses web services (SOAP/WSDL). I have built it like this: I construct my soap message manually (using soapui) and I call it like this :
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 fine.
My question is: Why do others programmers use soap clients like gSoap to call their web services? Why don't they use something simple like I have described? (it's not mine) Why are there so many soap clients & utilities?
Thanks for your answers.
Upvotes: 4
Views: 2553
Reputation: 168
When you start getting into WS-Security and other complexities with the services, it makes less and less sense to parse the SOAP requests/responses, figure out the encryption, etc., by writing it yourself. Especially if you have to support multiple platforms. Hence gSOAP is a C++ library that would work in Android and iOS that already does this.
Upvotes: 4