Is it possible to update or create NamedCredential from Apex ?
some background from internet search
From my investigation found that it's possible to update
NamedCredential through MetdataAPi and then
Found this Possible to update NamedCredential from Apex? , a time saver :).
However, after successful installation of apex-mdt ,i have added new apex class to create/update Namedcredential (this class will internally MetadataService Class).
when i tried to call my newly created apex class(MetadataWrapper), i was getting an error "Method does not exist or incorrect signature"
Issue Raised at : https://github.com/financialforcedev/apex-mdapi/issues/231
Not sure what is missing, Please Help!
I was using wrong logic for createService() and createMetadata(). clear steps mention in answer.