Integration livecode app using web service of SugarCRM

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
danish
Posts: 13
Joined: Tue Aug 06, 2013 12:36 pm

Integration livecode app using web service of SugarCRM

Post by danish » Fri Sep 06, 2013 1:12 pm

I would like to implement the application which should be in integration with Sugar CRM through it's web service?
Is it possible using Livecode?

Thanks & Regards
MD Danish

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Integration livecode app using web service of SugarCRM

Post by bangkok » Fri Sep 06, 2013 2:40 pm

I don't know SugarCRM, but Livecode can call a webservice, without any problems.

Basically 2 methods :

-you can "compose" yourself the header and the XML content (using the abilities of Livecode to play with texts, chunks etc.)... and you POST the whole to the webservice (a regular POST to an http address).

-or you can use the XML library, in order to build your call.

Here is an example :

Code: Select all

 put revXMLRPC_CreateRequest(ipoftheserver,PortNumber,Path,"http") into rpc_id -- Create the initial connection.
   revXMLRPC_SetMethod rpc_id, "login" -- Specify the method to call.
   revXMLRPC_AddParam rpc_id, "string", "Hello World"

   set the httpheaders to "Content-type: text/xml"

   put revXMLRPC_Execute(rpc_id) into result_id -- Submit & get the results.
   put revXMLText (result_id) into tUID

   answer "The webservice has answered : "&tUID

   if revXMLRPC_Documents() is not empty then revXMLRPC_DeleteAllDocuments

Post Reply