-
-
Notifications
You must be signed in to change notification settings - Fork 75
How to use with Block's
Prioregroup.com edited this page Jan 27, 2016
·
3 revisions
#import <SOAPEngine64/SOAPEngine.h>
//#import <SOAPEngineOSX/SOAPEngine.h>
//#import <SOAPEngineTV/SOAPEngine.h>
// standard soap service (.asmx)
SOAPEngine *soap = [[SOAPEngine alloc] init];
soap.userAgent = @"SOAPEngine";
//soap.responseHeader = YES; // only for not Microsoft standard services (like Apache server)
// each single value
[soap setValue:@"my-value1" forKey:@"Param1"];
[soap setIntegerValue:1234 forKey:@"Param2"];
// service url without ?WSDL, and you can search the soapAction in the WSDL
// service url without ?WSDL, and you can search the soapAction in the WSDL
[soap requestURL:@"http://www.my-web.com/my-service.asmx"
soapAction:@"http://www.my-web.com/my-interface/my-method"
completeWithDictionary:^(NSInteger statusCode, NSDictionary *dict) {
NSLog(@"%@", dict);
} failWithError:^(NSError *error) {
NSLog(@"%@", error);
}];