The current situation:
- I created a local plugin. This plugin is a simple form that inserts records to a custom table. It extends the moodleform class (let's call it MYFORM).
- I created other plugin, a webservice that extends the external_api class (let's call it MYWEBSERVICE). I am stating this just to be clear on what I have done previously.