Forums | Mahara Community

Developers /
Web services in Mahara 16.04.0


Osbel Rondón's profile picture
Posts: 23

30 May 2017, 9:52 AM

Hello everyone

I have this problem. I´ve created a auth plugin with this directory and files structure.

webservice/functions/first.php

webservice/services.php

version.php

lib.php

This plugin creates a new type of authentication method and in the services.php file I have defined a services called "mine" with four associated functions from first.php.

The problem is that when I install the plugin, the created service does not appear in the service list of the service management interface. However the authentication method is created succefully.

Anybody know why?

Thanks in advance, Osbel

Robert Lyon's profile picture
Posts: 387

30 May 2017, 10:48 AM

Hi Osbel,

Take a look at the htdocs/module/lti/lib.php file  - there is a save_config_options() function and in it is the setup for a few things relating to the webservice parts of the module.

Firstly it makes sure the webservice provider and related protocols are enabled that the module needs to use and then it calls external_reload_component() that loads the services and functions of the module into the system - and lastly makes sure the services are active.

Hopefully this gives you some help

Cheers

Robert

Osbel Rondón's profile picture
Posts: 23

31 May 2017, 1:05 PM

Hi Robert,

Has been of great help to me. Many thanks

Osbel

3 results