Skip to content

How to use for synchronous requests

Danilo edited this page Jun 7, 2020 · 3 revisions

Overview

This framework includes the ability to manage a synchronized flow to make the code dependent on the function in which resides.

Sample

	#import <SOAPEngine64/SOAPEngine.h>

    NSError *error = nil;
    SOAPEngine *soap = [[SOAPEngine alloc] init];
    soap.responseHeader = YES; // use only for non standard MS-SOAP service like PHP
    NSDictionary *dict = [soap syncRequestURL:@"http://www.my-web.com/my-service.amsx" 
                            soapAction:@"http://tempuri.org/my-method" error:&error];
    NSLog(@"error: %@, result: %@", error, dict)