by Ayesha Nasim.
please get help from here.
https://github.com/moodlehq/sample-ws-clients
you have to download the webservice client with respect to your web service protocol.
include it in the same folder as externallib.php & curl file
client.php
Regards