With the upcoming OTRS4 the CMDB will get an own Generic Interface connector to create, read, search and update CIs via SOAP or REST.
So first you have to create a new webservice within OTRS for the needed provider operations:
Then you have to create a script which uses the SOAP method to create a new CI: otrs.SOAPCreateCI.pl
Running it, it will create a new CI:
You’ll find the yml file to create the webservice here: GenericConfigItemConnectorSOAP.yml