-1

i have the following code

 DownloadOperations *DataObj=[[DownloadOperations alloc]init];
[DataObj ID];

NSString *body=[NSString stringWithFormat:@"<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><GetDocumentUpdatedInfo xmlns='http://tempuri.org/'><DocumentID>%@</DocumentID></GetDocumentUpdatedInfo></soap:Body></soap:Envelope>", [DataObj ID]];
NSLog(@"Body %@", body);

in this code [DataObj ID] is an NsMutablearray and the NSString (body) is the soap Request which requires a string value. how can i get this soap request to run iterativly for each element of the array?

Buntylm
  • 7,345
  • 1
  • 31
  • 51
Vishal
  • 168
  • 1
  • 16

1 Answers1

1
int loopCount = 0;
while (loopCount < [[DataObj ID] count]){
    //Do stuff with [[DataObj ID] objectAtIndex:loopCount]
    loopCount++;
}
Noah Dyer
  • 407
  • 5
  • 10