Webservices in Moodle 2.0

Webservices in Moodle 2.0

by Malte K -
Number of replies: 2
Hi there,

I would like to test the in Moodle 2.0 integrated SOAP interface, but I didn't get it to work jet. When I call the url
my
_moodle/webservice/wsdoc.php?protocol=soap
it's said the following:

Web services enable: OK
soap protocol enable: FAIL

and when I navigate to
Site Administration -> Security -> Web services
I get an empty page with this error:

"Error reading from database
Unknown column 'custom' in 'where clause' (...)".

So did I something wrong or is it still under construction? I apologize if I overlooked something in the documentation or elsewhere.

Best Regards

Malte Kastner
Average of ratings: -
In reply to Malte K

Re: Webservices in Moodle 2.0

by Alberto del Pozo -
Hi Malte.

First of all, sorry for my bad English.

The problem is that it´s still under construction (if the last moodle version this problem has been solved), so you´ll have to insert four rows (one for each protocol) in the mdl_config_plugins table (in moodle db) manually. In plugin, write soap, rest, xmlrpc or amf. In name, write enable, and in value write 1. If you do this, the four protocols will be activate.
But I think that in the last moodle versions the webservices don´t work because
there have been some changes.

Cheers.
Pozo.

In reply to Alberto del Pozo

Re: Webservices in Moodle 2.0

by Malte K -
Hi Alberto,

Thank you for your fast and extensive answer. I will test this.

Malte Kastner