Using Moodle Mnet - How to create a web service in plugin

Using Moodle Mnet - How to create a web service in plugin

per Phong Thanh,
Number of replies: 0

Hi mate,

I am maintaining a Moodle project, it using Mnet to expose web service. The rpblib.php on a plugin. Have many old methods exist, but now i must create new method. I ve create

- modulename_methodname_RPC_OK

- add method to modulename_mnet_publishes() and add agruments

- Implement methods logic

But i can't call this method. Response is

Array
(
    [faultCode] => 7015
    [faultString] => Unable to locate function, or function prohibited for RPC.
)

Could you please take a look and help me ?

Thanks in advanced.
Average of ratings  -