SHARE
TWEET

iOS SOAP client engine

priore Aug 31st, 2013 623 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This generic SOAP client allows you to access web services using a your iOS app.
  3. https://github.com/priore/SOAPEngine
  4.  
  5. With this Framework you can create iPhone and iPad Apps that supports SOAP Client Protocol. This framework able executes methods at remote web services with SOAP standard protocol.
  6.  
  7. ** Features
  8. * Support both 2001 (v1.1) and 2003 (v1.2) XML schema.
  9. * Support array, array of structs and dictionary.
  10. * Support user-defined object. Capable of serializing complex data types and array of complex data types, even multi-level embedded structs.
  11. * An example is included in source code.
  12.  
  13. ** Requirements
  14. * iOS 4.x, 5.x and last iOS6.
  15. * XCode 4.1 or later
  16. * Security.framework
  17. * Foundation.framework
  18. * UIKit.framework
  19. * libxml2.dylib
  20.  
  21. Below a simple example on Objective-C :
  22. https://github.com/priore/SOAPEngine
  23. */
  24.  
  25. #import <SOAPEngine/SOAPEngine.h>
  26.  
  27. SOAPEngine *soap = [[SOAPEngine alloc] init];
  28. soap.userAgent = @"SOAPEngine";
  29. soap.delegate = self; // use SOAPEngineDelegate
  30. [soap setValue:@"my-value1" forKey:@"Param1"];
  31. [soap setIntegerValue:1234 forKey:@"Param2"];
  32. [soap requestURL:@"http://www.my-web.com/my-service.asmx" soapAction:@"http://www.my-web.com/My-Method-name"];
  33. #pragma mark - SOAPEngine delegates
  34. - (void)soapEngine:(SOAPEngine *)soapEngine didFinishLoading:(NSString *)stringXML {
  35.         NSDictionary *result = [soapEngine dictionaryValue];
  36.         // read data from a dataset table
  37.         NSArray *list = [result valueForKeyPath:@"NewDataSet.Table"];
  38. }
  39.  
  40. // https://github.com/priore/SOAPEngine
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top