I think that does help because now its installing and doing everything it should do - up to the point of testing using the Web Service Test Client ( thanks to http://docs.moodle.org/en/Development:Creating_a_web_service_and_a_web_service_function ). But now none of the W S are working (neither my own nor the ones that come with Moodle) :
I am either getting a problem that the expected XML isn't found
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://myserver/moodle/webservice/soap/server.php?wstoken=e2ba2a6ef55c8f5433a7689a3532f6d4&wsdl=1' : Start tag expected, '<' not found
Or, in the case of functions that are already provided with Moodle, that such-and-such method is not a valid method for this service.
Hopefully the fact that it is installing and everything at the moment means that the code itself is in better shape ( The main thing I wasn't sure about was how to use exception handling and in-context capabilities) but there is a deeper problem that needs to be solved first.
N.B. I have started a separate thread for these problems http://moodle.org/mod/forum/discuss.php?d=175433 so sorry for double posting. It is a separate issue from the issue of coding a bespoke web service function , but obviously it is also one that is stopping me from getting any further with testing these.