Plain XML-RPC behaviour changed in recent versions

Plain XML-RPC behaviour changed in recent versions

by Antonio Duran -
Number of replies: 0
Hi all. I am developing some extensions to integrate Moodle with Joomla (http://extensions.joomla.org/extensions/vertical-markets/education/10021)
They use simple XML-RPC services (no encryption). Until recently it all worked well.

I recently tried with Moodle latest stable version, and found out that something changed, and the extensions stopped working. Moodle gave "No such function or function prohibited for RPC" errors.

After looking at the new code, I found out that it worked again by adding a row in the mnet_host2service, like this:
insert into mdl_mnet_host2service (hostid, serviceid, publish) values (1, 4, 1);

What I would like to know is wheter I should wrrite that row to the database at install time, or there is another recommended way to do it, because this is quite hardcoded. Or maybe I am missing something here...

Thanks in advance for any insight.

Best regards,
Antonio
Average of ratings: -