According to documentation on loopback, lb soap
creates models of underlying soap based datasource. Is there a programmatic way to do this? I want to do it programmatically to facilitate a dynamic soap consumption through dynamically created models and datasources.
Is there an equivalent way of doing 'lb soap' programmatically with loopback?
66 Views Asked by Technoshaft At
1
Disclaimer: I am a co-author and maintainer of LoopBack.
Here is the source code implementing the command
lb soap
:Here is the code that's generating models definition and method source code:
As you can see, most of the work is delegated to
soapGenerator
, which refers to loopback-soap - a lower-level module maintained by the LoopBack team too. In your application, you can useloopback-soap
directly (no need to depend on our CLI tooling) and call its API to generate SOAP-related models.Unfortunately we don't have much documentation for
loopback-soap
since it has been mostly an internal module so far. You will have to read the source code to build a better understanding. If you do so, then we would gladly accept contributions improving the documentation for future users.