WSDL TSClient
Generate soap client with typescript definitons from WSDL file.
This library is using ts-morph to generate typescript code and node-soap for runtime, inspired by Java wsimport
NOTE: Add soap
to your npm runtime dependency npm i soap
Install
npm i wsdl-tsclient
or install it with -g
to have CLI globally available.
npm i -g wsdl-tsclient
Usage
Using CLI
wsdl-tsclient ./soap.wsdl -o ./generated
wsdl-tsclient ./resources/**/*.wsdl -o ./generated
- using glob
Version: 0.3.2
Syntax: wsdl-tsclient [options] [path]
Example: wsdl-tsclient file.wsdl -o ./generated/
wsdl-tsclient ./res/**/*.wsdl -o ./generated/
Options:
-h, --help Print this message
-v, --version Print version
-o Output dir
Programmatically
import { generateClient } from "wsdl-tsclient";
generateClient("MyWsdlClient", "./path/to/wsdl.wsdl", "./generated/soap-client");