Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Creating a web service and a web service function

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just return it again) and build up to more complicated and general examples. The discussion here concentrates on a service that is probably WAY more complicated that anyone will ever need and is just going to frighten potential users away. --Howard Miller 14:39, 21 July 2010 (UTC)

Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume:

require_once("$CFG->libdir/externallib.php");

class moodle_group_external extends external_api {

--Howard Miller 15:16, 21 July 2010 (UTC)