In addition to Archer answer, if your question was “how can I create an XMLPort for Business Central”, you can create an extension with VS Code and AL and use the snippet txmlport.
The syntax is described here:
[View:https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-xmlport-object]
You can also convert your existing xmlPort using Txt2AL tool.