Community mailing list archives

Re: odoo development for ios app

- 07/22/2015 07:42:27
We used this code for the Authentication from iOS to ODOO using ODOO web services.

  NSMutableArray *argslogin = [NSMutableArray arrayWithObjects:DATABASE,USERNAME,USERPASSWORD, nil];

    NSString *serverlogin = [NSString stringWithFormat:@"http://%@:%@/xmlrpc/common",HOST,PORT];       

    NSString *methodlogin = @"login";                                        

    XMLRPCRequest *requestlogin = [[XMLRPCRequest alloc] initWithURL:[NSURLURLWithString:serverlogin]];

    [requestlogin  setMethod:methodlogin withParameters:argslogin];

    NSError *myErrorlogin;

    XMLRPCResponse *response = [XMLRPCConnection sendSynchronousXMLRPCRequest:requestlogin error: &myErrorlogin];

    NSString *xmlData = [response body];

    NSLog(@"xmlData   %@",xmlData);

For calling any other method instead of common web service you can use object web service can call read, write, create and unlink methods.

Hope this help.

Husen Daudi,
Managing Director,
Serpent Consulting Services,
M : +91-9033472982
S : husen.daudi
Follow : Twitter | FaceBook | LinkedIn

On 22-Jul-2015, at 12:10 am, wrote:

I have odoo development for IOS app :
I tried to connect with odoo database to retrive the data from ios 
application,but it gives me connection failure.
So which third party librarys  using in ios application.
So i am not sure where i am going wrong.I hope i have explained the 
issue clearly.
Please guide me if i am making any mistake.
Thank you.

Post to: