Wednesday, 2 July 2014

parsing xml response from web service



i have a web service in my IOS application which will return a xml with returned data


this is my .m file:



#import "ViewController.h"

@interface ViewController (){
SYSoapTool *soaptool;
}

@end

@implementation ViewController

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

soaptool = [[SYSoapTool alloc]init];
[soaptool setDelegate:self];


NSMutableArray *tag=[[NSMutableArray alloc] initWithObjects:@"oid", nil];
NSMutableArray *varse=[[NSMutableArray alloc] initWithObjects:@"10", nil];
[soaptool callSoapServiceWithParameters__functionName:@"GetContainer" tags:tag vars:varse wsdlURL:@"http://ift.tt/VbVm3W"];



}



-(void) retriveFromSYSoapTool:(NSMutableArray *)_data{
NSLog(@"data: %@",_data);



}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

@end


what i want is to fetch data from the array (_data) to print it in the screen of the application not in the debugger for example label 1 will contains the first data retrived and so on


how to do that ?


No comments:

Post a Comment