11-29-2016, 09:33 AM
(11-29-2016, 08:04 AM)Guido1982 Wrote: Good to know, I'll focus my attention on webservice. I'd very much like to see the SO webservice.
I attached the plugin. You have to go to Settings > Plugin Manager and upload it there. If I remember correctly it uploads it to the wrong directory and you have to manually move it to the right place. I never got around to investigating but it is probably here:
https://github.com/tsolucio/coreBOSMYCCP/blob/master/configuration/index.php#L68
I think that has to be:
PHP Code:
$zip->extractTo(ROOT_PATH.'/plugins');
at least that is where I have that code now.
Let me know how that goes.
(11-29-2016, 08:04 AM)Guido1982 Wrote: About you doInvoke example: that represents a file on the portal side right? You invoke the 'convertlead' method, but where would that be defined? In the general webservice file or in a module? And if so, how can you register webservice methods in the app from a module?
Yes, that code would be on the portal side.
To register a new webservice you have to call the registerWSAPI() function:
https://github.com/tsolucio/corebos/blob/master/include/Webservices/Utils.php#L401
that accepts an array with the definition of the new method: where it lives, what it is called, it's parameters,....
https://github.com/tsolucio/corebos/blob/master/include/Webservices/Utils.php#L385
You have a whole bunch of examples here:
https://github.com/tsolucio/corebos/tree/master/build/wsChanges
which are the new ones we have added on top of vtiger CRM's default ones.
Joe
TSolucio
TSolucio