wsdl-typegen
此软件包允许为 SOAP 客户端生成流程或打字符类型,由 SOAP 生成 soap 软件包.
使用量
- 安装 npm 或纱线
npm i -D wsdl-typegen
yarn add -D wsdl-typegen
- 创建并运行您的脚本
package.json
"scripts": {
"typegen-flow": "wsdl-typegen generate 'path/to/your/wsdls/**/*.wsdl'",
"typegen-typescript": "wsdl-typegen generate -t 'path/to/your/wsdls/**/*.wsdl'"
}
npm run typegen
输入文件将在您的 wsdl 和 xsd 文件旁边生成 .