My question would be:
How is it possible to automatically create an Connector based on this file?
As it is done with an WSDL File when calling SOAP Services …
We really hope this is possible as we really don’t want to create the API calls manually
The API has quite some different calls and structures …
You can create a connector using the Node.js CLI Connector Builder, wherein you have the facility to create a connector based on the Open API file using the command wmio swagger <swagger_file>. Please refer to the Connector Builder documentation @ Connector Builder - Node.js CLI - webMethods.io Integration
We tried to do this and the generation of the API worked quite fine basically.
But we have a Problem with the Authentication.
Our Problem is that the API we need to use uses the following Auth:
We need to make a First Call - logonUser - we get a TOKEN back here as answer.
This token needs to be provided as a customer http Header in further calls.
This token also expires after 12 hours and needs to be renewed.
The basic idea is similar to OAuth - but it is not the OAuth Standard Flow unfortunatly.
We already read the Auth part on the Builder Page and also tried to use AuthenticationHelper.js
But we didn’t manage until now to get this to work.
What would be your approach to solve such Auth Problem?