In ios i am using Xml soap parsing This is my response
<InsertResponse xmlns="http://OrderMe.solyn.in/"><InsertResult>[{"Result":"Success","AccessToken":"f60da1f1-40d7-483d-880a-82348dc20934","AppUserId":"35"}]</InsertResult></InsertResponse>
Then i am using This code for Get Response
-(void)parser:(NSXMLParser *) parser foundCharacters:(NSString *)string {
if (elementFound) {
// NSLog(@"%@",soapResults);
[soapResults appendString: string];
if ([Type isEqualToString:@"InsertResponse"] ) {
//--- Retrieving text of an element that is found---
NSLog(@"%@",string);
NSString *str = [[NSString alloc]initWithData:string encoding:NSUTF8StringEncoding];
NSArray *allData = [str JSONValue];
//NSString *loginID=[NSString stringWithFormat:@"%@",string];
//NSLog(@"Login ID Returned from web service is : %@",loginID);
}
}
}
in this code ** NSLog(@"%@",string);** this string is print
[{"Result":"Success","AccessToken":"f60da1f1-40d7-483d-880a-82348dc20934","AppUserId":"35"}]
so i dont know how to convert this string in array I am wating response please share your valuable knowledge Regards, Nishant Chandwani Thanks .