I used the first one you mention https://github.com/eczarny/xmlrpc with success on the iPhone project.
Must work. (was some time ago)
[EDIT]
A few more details: I imported XMLRPCResponse and XMLRPCEventBasedParser (+ all related classes to make them work from the project).
Then here is the code to parse the response (I did the request manually):
NSURL* url = [NSURL URLWithString:@"http://www.xxxxxxxxx.fr/xmlrpc.php"]; NSMutableURLRequest* urlRequest = [NSMutableURLRequest requestWithURL:url]; [urlRequest setHTTPMethod:@"POST"]; [urlRequest addValue:@"text/xml" forHTTPHeaderField:@"Content-Type"]; NSString* param = [NSString stringWithFormat: @"<param><value><double>%f</double></value></param><param><value><double>%f</double></value></param><param><value><double>%.0f</double></value></param><param><value><int>1</int></value></param>", request.coordinate.latitude, request.coordinate.longitude, request.radius/1000.0]; NSString* xmlrpcReq = [NSString stringWithFormat:@"<?xml version=\"1.0\"?><methodCall><methodName>geoSearch</methodName><params>%@</params></methodCall>", param]; [urlRequest setHTTPBody:[xmlrpcReq dataUsingEncoding:NSUTF8StringEncoding]]; NSURLResponse* response; NSError* error; NSData* content = [NSURLConnection sendSynchronousRequest:urlRequest returningResponse:&response error:&error]; XMLRPCResponse* rpcResponse = [[XMLRPCResponse alloc] initWithData:content]; if ([rpcResponse faultCode]==0) { NSArray* result = (NSArray*)[rpcResponse object];
Cheers Lionel.
yonel source share