PDA

View Full Version : How to use XMLRPC




deepak832
Jul 21, 2008, 02:25 AM
Hello Everyone,
I am a new developer in iphone application development. I am trying to create an application, in that i like to use xmlrpc framework, but i can't able to use that, means i can't understand the flow of use, how to make request and get response using xmlrpc request-response classes.

some sample code is like :

XMLRPCRequest *request = [[XMLRPCRequest alloc]initWithHost:[NSURL URLWithString:FeedURL]];

[request setMethod: @"getNumberofCategories" withObjects:@"data"];
// //[request setMethod: @"getNumberofCategories" setParameter: @"Hello World!"];
[request setUserAgent: @"Umundo Mobile"];

XMLRPCConnection *connection = [[XMLRPCConnection alloc]
initWithXMLRPCRequest: request delegate: self];

but my code is not able to create any connection by the above code.

any one can please help me in that , how can i use xml-rpc class to make request and get response.


Thanks in advance.
Vicky