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
Integration livecode app using web service of SugarCRM
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Integration livecode app using web service of SugarCRM
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 :
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