External application interaction with Moodle 1.9.13

External application interaction with Moodle 1.9.13

by Andrew Go -
Number of replies: 5

Hi all!

For analytics tasks we just need to execute some sql queries from remote computer to our Moodle database.


Please can you tell me how better to achieve this goal?

How to enable web services with Moodle 1.9.13 ?

I can't find the Plugins->Web services menu item for enabling web services and swithcing protocols settings and generating token settings for remote third-party clients.


And is it possible to create third-party rest\soap (probably xml-rpc) client application on java\python\javascript without writing php server side code (except business logic functions of course)?

I don't know php at all. But probably i could write simple functions that should be calling from remote computer for sql queries executing.


Besides we can't upgrade Moodle to 2.0 due to old plugins that i should using.

Thank you for your time and sorry for my language level!

Average of ratings: -
In reply to Andrew Go

Re: External application interaction with Moodle 1.9.13

by Rahul Rai -

Hello Andrew

For enable web services in moodle 1.9 you need to follow path.

Settings block > Site Administration > Plugins > Web services > External Services.

Select Authorized users link.

Select the created user and click Add.


Create a token


 Settings block > Site Administration > Plugins > Web services > Manage tokens
 Click on Add
 Select the created user and service
 Click on Saves changes

In reply to Rahul Rai

Re: External application interaction with Moodle 1.9.13

by Andrew Go -

Hello, Rahul!


I can't find that menu items, please see the screenshot below. This is our test Moodle server.

Attachment MoodleMenu.png
In reply to Andrew Go

Re: External application interaction with Moodle 1.9.13

by Rahul Rai -

Hi Andrew

It is better to upgrade your moodle version.

Do not worry about old version plugins. It also you can upgrade. 


In reply to Rahul Rai

Re: External application interaction with Moodle 1.9.13

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Andrew - the link Rahul gave is for Moodle sites later than 1.9, which is why you can't see it. Moodle 1.9 is nearly ten years old. I do understand that some plugins have held you back from upgrading. You would need to see if you can find someone who can upgrade the plugins for you if you are unable to do it yourself.

In reply to Mary Cooch

Re: External application interaction with Moodle 1.9.13

by Andrew Go -

Thank you for your feedback!


Need some time for explore.