Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i have called wp.getComments from my iphone app, but its returning nil,,

following r my parameters can anybody tell me where i gone wrong

NSDictionary *DicCommentStructure = [NSDictionary dictionaryWithObjectsAndKeys:@"",@"Approved",@"50",@"10",nil];

    // Send XMLRPCRequest to the server
    NSArray *arrParameters = [NSArray arrayWithObjects:@"1", @"username", @"password",DicCommentStructure, nil];
    NSString *strServer = [[[NSString alloc] initWithString:@"http://xyz.com/xmlrpc.php"] autorelease];         // the server
    NSString *strMethod = [[[NSString alloc] initWithString:@"wp.getComments"] autorelease];                        // the method
    XMLRPCRequest *objXMLRPCRequest = [[XMLRPCRequest alloc] initWithHost:[NSURL URLWithString:strServer]];
    [objXMLRPCRequest setMethod:strMethod withObjects:arrParameters];

thanx in advance!!

share|improve this question
    
Again: Please format your questions properly. –  kaiser Jul 31 '12 at 3:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.