Moodle custom service creation issue
<p>I am trying to create Moodle custom service for my functionality enhancement </p>

<pre><code>1 ) https://docs.moodle.org/dev/External_functions_API
2 ) https://docs.moodle.org/dev/Adding_a_web_service_to_a_plugin
</code></pre>

<p>updated service module based on these documents.created service module and external_lib.php file.
But i got error while accessing the web service API</p>

<p>Error : 
{"exception":"dml_missing_record_exception","errorcode":"invalidrecord","message"
:"Can not find data record in database table external_functions."}</p>

<p>Enabled debug mode and tried again . It shows external function registration error . </p>

<pre><code>{"exception":"dml_missing_record_exception","errorcode":"invalidrecord","mess    age"
:"Can not find data record in database table     external_functions.","debuginfo":"SELECT * FROM {external_functions
} WHERE name = ?\n[array (\n  0 =&gt; 'local_enroll_course',\n)]"}    
</code></pre>

<p>How can i register newly created service inside Moodle ? Pls Help</p>