XMLRPC request on mobile

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
razvan
Posts: 19
Joined: Tue Feb 24, 2015 10:16 am

XMLRPC request on mobile

Post by razvan » Thu Aug 11, 2016 6:58 am

Hello
I need to use webservices of odoo ERP in my app.
I was trying to make a request with revXMLRPC_CreateRequest.That's working just on pc,but not on mobile.
Have you another alternative for XMLRPC on mobile or an external, library?

Code: Select all

on mouseUp
   put revXMLRPC_CreateRequest("139.59.145.239", "8069", "xmlrpc/2/common","http") into rpc_id -- Create the initial connection.
   revXMLRPC_SetMethod rpc_id, "version" -- Specify the method to call.
   --revXMLRPC_AddParam rpc_id, "string",  "[]" -- For PaperCut, the first param must be the password.
   --revXMLRPC_AddParam rpc_id, "string", "" -- Second param is the value required by the method.
   put revXMLRPC_Execute(rpc_id) into result_id -- Submit & get the results.
   answer result_id
   put revXMLText (result_id) into fld "result"
end mouseUp
Kind Regards,
Razvan

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

Re: XMLRPC request on mobile

Post by peter-b » Mon Aug 15, 2016 12:56 pm

The XML RPC external is showing its age and I would be surprised if it worked correctly on mobile.

For XML RPC on mobile, your best option may be to use the revXML external to construct a query and then use libURL to send the request.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

razvan
Posts: 19
Joined: Tue Feb 24, 2015 10:16 am

Re: XMLRPC request on mobile

Post by razvan » Thu Aug 25, 2016 4:28 pm

Can you attach here some links for download and use revXML external and libURL?

Thanks for your answer

Post Reply

Return to “Android Deployment”