{"_id":"@4success/wsdl-tsclient","_rev":"5-1d68581d7155214122176caaed888643","name":"@4success/wsdl-tsclient","dist-tags":{"latest":"1.7.0"},"versions":{"1.6.0":{"name":"@4success/wsdl-tsclient","version":"1.6.0","keywords":["soap","soap-client","wsdl","wsdl-client","typescript"],"author":{"name":"Daniel Derevjanik","email":"daniel.derevjanik@gmail.com"},"license":"MIT","_id":"@4success/wsdl-tsclient@1.6.0","maintainers":[{"name":"andrerobles","email":"andre@4success.com.br"},{"name":"renanwilliam","email":"renan@4success.com.br"}],"homepage":"https://github.com/arkeero-forks/wsdl-tsclient#readme","bugs":{"url":"https://github.com/arkeero-forks/wsdl-tsclient/issues"},"bin":{"wsdl-tsclient":"dist/src/cli.js"},"dist":{"shasum":"7caeb8546739253f160aa6a17b5ee93a3c50dda3","tarball":"https://registry.npmjs.org/@4success/wsdl-tsclient/-/wsdl-tsclient-1.6.0.tgz","fileCount":60,"integrity":"sha512-ZtN6QXP6iG1QC8NBOmhpfzDSSCG0i8MYAfQY/1MZsWeYAZ1R2v/61FwJiN2ZNExC6KZXm3Z3Zz5wIzB1nrqSVA==","signatures":[{"sig":"MEUCICSf+3JNSYT2ZhC4n5PEnbQ4jCBQWQtBK8fdBzQVDr9nAiEA+TPpHTSrq+E3gSsEFBYEICbJZqlQwnsNOldzq2NXzk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166586},"main":"dist/src/index.js","types":"./dist/src/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"b8a1977f8712aa657c8e8519c6ddda1e338ebedb","scripts":{"dev":"ts-node -T ./dev.ts","dist":"tsc","lint":"eslint ./src","test":"npm run test:node-soap && npm run test:node-soap2 && npm run test:public","build":"tsc","build:w":"tsc -w --noEmit","pretest":"rm -rf ./test/generated","lint:fix":"eslint --fix ./src","preversion":"npm test && npm run build","test:public":"ts-node node_modules/tape/bin/tape ./test/resources-public/**/*.test.ts | tap-spec","prepublishOnly":"npm test && npm run dist","test:node-soap":"ts-node node_modules/tape/bin/tape ./test/node-soap/*.test.ts | tap-spec","test:node-soap2":"ts-node node_modules/tape/bin/tape ./test/node-soap/**/*.test.ts | tap-spec"},"_npmUser":{"name":"renanwilliam","email":"renan@4success.com.br"},"repository":{"url":"git+ssh://git@github.com/4success/wsdl-tsclient.git","type":"git"},"_npmVersion":"9.8.1","description":"Generate typescript soap client with typescript definitons from WSDL file.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"soap":"^1.0.0","chalk":"4.*","yargs":"^17.7.2","eslint":"^8.49.0","ts-morph":"^19.0.0","camelcase":"^6.3.0","@types/node":"^20.6.0","@types/tape":"^5.6.0","@types/yargs":"^17.0.24","supports-color":"^8.1.1","sanitize-filename":"^1.6.3","@types/supports-color":"^8.1.1","eslint-plugin-prettier":"^5.0.0","@typescript-eslint/parser":"^6.7.0","@typescript-eslint/eslint-plugin":"^6.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.6.6","ts-node":"^10.9.1","prettier":"^3.0.3","tap-spec":"^5.0.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/wsdl-tsclient_1.6.0_1708368081198_0.08527103211068576","host":"s3://npm-registry-packages"}},"1.6.1":{"name":"@4success/wsdl-tsclient","version":"1.6.1","keywords":["soap","soap-client","wsdl","wsdl-client","typescript"],"author":{"name":"Daniel Derevjanik","email":"daniel.derevjanik@gmail.com"},"license":"MIT","_id":"@4success/wsdl-tsclient@1.6.1","maintainers":[{"name":"andrerobles","email":"andre@4success.com.br"},{"name":"renanwilliam","email":"renan@4success.com.br"}],"homepage":"https://github.com/arkeero-forks/wsdl-tsclient#readme","bugs":{"url":"https://github.com/arkeero-forks/wsdl-tsclient/issues"},"bin":{"wsdl-tsclient":"dist/src/cli.js"},"dist":{"shasum":"92bc02c2245c97d595f5c6bf3021e97747f6ad38","tarball":"https://registry.npmjs.org/@4success/wsdl-tsclient/-/wsdl-tsclient-1.6.1.tgz","fileCount":60,"integrity":"sha512-Kb6W51YRqmDmQTFqdM7ovb3nVsjQnquhyxDNS8wGFKlaWsY3ZciHed6txi1ZjpXLJD9yLRph0CPE2juBu/XA/w==","signatures":[{"sig":"MEUCIHIn+WO13s2onTNm522mchw0uNShIrxSy0yGX6z+mZ/rAiEAoKNuWVFpRY5mFskU/JAvQDz+ab2lUD6lD4H7uaZLZdo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166416},"main":"dist/src/index.js","types":"./dist/src/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"6e864365b427a9782d2110551fc408f11208d5e8","scripts":{"dev":"ts-node -T ./dev.ts","dist":"tsc","lint":"eslint ./src","test":"npm run test:node-soap && npm run test:node-soap2 && npm run test:public","build":"tsc","build:w":"tsc -w --noEmit","pretest":"rm -rf ./test/generated","lint:fix":"eslint --fix ./src","preversion":"npm test && npm run build","test:public":"ts-node node_modules/tape/bin/tape ./test/resources-public/**/*.test.ts | tap-spec","prepublishOnly":"npm test && npm run dist","test:node-soap":"ts-node node_modules/tape/bin/tape ./test/node-soap/*.test.ts | tap-spec","test:node-soap2":"ts-node node_modules/tape/bin/tape ./test/node-soap/**/*.test.ts | tap-spec"},"_npmUser":{"name":"renanwilliam","email":"renan@4success.com.br"},"repository":{"url":"git+ssh://git@github.com/4success/wsdl-tsclient.git","type":"git"},"_npmVersion":"9.8.1","description":"Generate typescript soap client with typescript definitons from WSDL file.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"soap":"^1.0.0","chalk":"4.*","yargs":"^17.7.2","eslint":"^8.49.0","ts-morph":"^19.0.0","camelcase":"^6.3.0","@types/node":"^20.6.0","@types/tape":"^5.6.0","@types/yargs":"^17.0.24","supports-color":"^8.1.1","sanitize-filename":"^1.6.3","@types/supports-color":"^8.1.1","eslint-plugin-prettier":"^5.0.0","@typescript-eslint/parser":"^6.7.0","@typescript-eslint/eslint-plugin":"^6.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.6.6","ts-node":"^10.9.1","prettier":"^3.0.3","tap-spec":"^5.0.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/wsdl-tsclient_1.6.1_1708370098001_0.5189255931892642","host":"s3://npm-registry-packages"}},"1.6.2":{"name":"@4success/wsdl-tsclient","version":"1.6.2","keywords":["soap","soap-client","wsdl","wsdl-client","typescript"],"author":{"name":"Daniel Derevjanik","email":"daniel.derevjanik@gmail.com"},"license":"MIT","_id":"@4success/wsdl-tsclient@1.6.2","maintainers":[{"name":"andrerobles","email":"andre@4success.com.br"},{"name":"renanwilliam","email":"renan@4success.com.br"}],"homepage":"https://github.com/arkeero-forks/wsdl-tsclient#readme","bugs":{"url":"https://github.com/arkeero-forks/wsdl-tsclient/issues"},"bin":{"wsdl-tsclient":"dist/src/cli.js"},"dist":{"shasum":"e1bf6e512e20630663b3191a0bafde0b50781155","tarball":"https://registry.npmjs.org/@4success/wsdl-tsclient/-/wsdl-tsclient-1.6.2.tgz","fileCount":60,"integrity":"sha512-SrX7qS9hs13aUqgmCueXnv8pvitoJv2SMmJpn5Af4ikbSyRYOwSu/tzhPYCfYm0JonSKm9HW4U3pt9m4oJImdA==","signatures":[{"sig":"MEUCIFsZpOCtlVfhbCffgbd64Wt99Ha6BU+XIT6drxby7HBEAiEA90gm3BdppUWlSIOEcSikSwpqIpkTqs9voR6lW7V+1F8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166524},"main":"dist/src/index.js","types":"./dist/src/index.d.ts","engines":{"node":">=10.0.0"},"gitHead":"ee787f41a6e39686b542c9344f6df8bf390ccbaf","scripts":{"dev":"ts-node -T ./dev.ts","dist":"tsc","lint":"eslint ./src","test":"npm run test:node-soap && npm run test:node-soap2 && npm run test:public","build":"tsc","build:w":"tsc -w --noEmit","pretest":"rm -rf ./test/generated","lint:fix":"eslint --fix ./src","preversion":"npm test && npm run build","test:public":"ts-node node_modules/tape/bin/tape ./test/resources-public/**/*.test.ts | tap-spec","prepublishOnly":"npm test && npm run dist","test:node-soap":"ts-node node_modules/tape/bin/tape ./test/node-soap/*.test.ts | tap-spec","test:node-soap2":"ts-node node_modules/tape/bin/tape ./test/node-soap/**/*.test.ts | tap-spec"},"_npmUser":{"name":"renanwilliam","email":"renan@4success.com.br"},"repository":{"url":"git+ssh://git@github.com/4success/wsdl-tsclient.git","type":"git"},"_npmVersion":"9.8.1","description":"Generate typescript soap client with typescript definitons from WSDL file.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"soap":"^1.0.0","chalk":"4.*","yargs":"^17.7.2","eslint":"^8.49.0","ts-morph":"^19.0.0","camelcase":"^6.3.0","@types/node":"^20.6.0","@types/tape":"^5.6.0","@types/yargs":"^17.0.24","supports-color":"^8.1.1","sanitize-filename":"^1.6.3","@types/supports-color":"^8.1.1","eslint-plugin-prettier":"^5.0.0","@typescript-eslint/parser":"^6.7.0","@typescript-eslint/eslint-plugin":"^6.7.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.6.6","ts-node":"^10.9.1","prettier":"^3.0.3","tap-spec":"^5.0.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/wsdl-tsclient_1.6.2_1708370902645_0.4701426274563676","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"@4success/wsdl-tsclient","version":"1.7.0","description":"Generate typescript soap client with typescript definitons from WSDL file.","main":"dist/src/index.js","bin":{"wsdl-tsclient":"dist/src/cli.js"},"engines":{"node":">=10.0.0"},"scripts":{"pretest":"rm -rf ./test/generated","test":"npm run test:node-soap && npm run test:node-soap2 && npm run test:public","test:node-soap":"ts-node node_modules/tape/bin/tape ./test/node-soap/*.test.ts | tap-spec","test:node-soap2":"ts-node node_modules/tape/bin/tape ./test/node-soap/**/*.test.ts | tap-spec","test:public":"ts-node node_modules/tape/bin/tape ./test/resources-public/**/*.test.ts | tap-spec","preversion":"npm test && npm run build","prepublishOnly":"npm test && npm run dist","dev":"ts-node -T ./dev.ts","dist":"tsc","build":"tsc","build:w":"tsc -w --noEmit","lint":"eslint ./src","lint:fix":"eslint --fix ./src"},"repository":{"type":"git","url":"git+ssh://git@github.com/4success/wsdl-tsclient.git"},"keywords":["soap","soap-client","wsdl","wsdl-client","typescript"],"author":{"name":"Daniel Derevjanik","email":"daniel.derevjanik@gmail.com"},"maintainers":[{"name":"renanwilliam","email":"renan@4success.com.br"}],"license":"MIT","bugs":{"url":"https://github.com/arkeero-forks/wsdl-tsclient/issues"},"homepage":"https://github.com/arkeero-forks/wsdl-tsclient#readme","devDependencies":{"prettier":"^3.0.3","tap-spec":"^5.0.0","tape":"^5.6.6","ts-node":"^10.9.1","typescript":"^5.2.2"},"dependencies":{"@types/node":"^20.6.0","@types/supports-color":"^8.1.1","@types/tape":"^5.6.0","@types/yargs":"^17.0.24","@typescript-eslint/eslint-plugin":"^6.7.0","@typescript-eslint/parser":"^6.7.0","camelcase":"^6.3.0","chalk":"4.*","eslint":"^8.49.0","eslint-plugin-prettier":"^5.0.0","sanitize-filename":"^1.6.3","soap":"^1.0.0","supports-color":"^8.1.1","ts-morph":"^19.0.0","yargs":"^17.7.2"},"_id":"@4success/wsdl-tsclient@1.7.0","gitHead":"070c02aad26fd14a23c883e12909523cbdeb8bcd","types":"./dist/src/index.d.ts","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-T0PFNjeqbxHnIpYlxapJgJZbrIrOR0aDsgv2ZUEHx9Gzi1luCss57nl7aAcs0PqHyTidoQVh1cxWQ5/zB9mxAg==","shasum":"c5c1bcc91f1268ed2ab0ac898199acff06273864","tarball":"https://registry.npmjs.org/@4success/wsdl-tsclient/-/wsdl-tsclient-1.7.0.tgz","fileCount":64,"unpackedSize":180320,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDm+5yXzfEGsUWmlyFT3Al6ni9pAYON0eSZiJ5XfevviQIgV+0m8plQajyb6W3UY8B4oyTJ8MDexyNFdJhS3A4Fg3c="}]},"_npmUser":{"name":"renanwilliam","email":"renan@4success.com.br"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wsdl-tsclient_1.7.0_1752525055675_0.38606462917594886"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-19T18:41:21.064Z","modified":"2025-07-14T20:30:56.038Z","1.6.0":"2024-02-19T18:41:21.372Z","1.6.1":"2024-02-19T19:14:58.139Z","1.6.2":"2024-02-19T19:28:22.856Z","1.7.0":"2025-07-14T20:30:55.835Z"},"bugs":{"url":"https://github.com/arkeero-forks/wsdl-tsclient/issues"},"author":{"name":"Daniel Derevjanik","email":"daniel.derevjanik@gmail.com"},"license":"MIT","homepage":"https://github.com/arkeero-forks/wsdl-tsclient#readme","keywords":["soap","soap-client","wsdl","wsdl-client","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/4success/wsdl-tsclient.git"},"description":"Generate typescript soap client with typescript definitons from WSDL file.","maintainers":[{"name":"renanwilliam","email":"renan@4success.com.br"}],"readme":"# WSDL TSClient\n\n[![travis-status](https://travis-ci.org/dderevjanik/wsdl-tsclient.svg?branch=master)](https://travis-ci.org/dderevjanik/wsdl-tsclient)\n![license](https://img.shields.io/npm/l/wsdl-tsclient)\n[![Known Vulnerabilities](https://snyk.io/test/github/dderevjanik/wsdl-tsclient/badge.svg)](https://snyk.io/test/github/dderevjanik/wsdl-tsclient)\n[![npm-version](https://img.shields.io/npm/v/wsdl-tsclient)](https://npmjs.com/package/wsdl-tsclient)\n\n**Example how to generate and use wsdl-tsclient:** [wsdl-tsclient-example](https://github.com/dderevjanik/wsdl-tsclient-example)\n\nGenerate a [soap client](https://www.npmjs.com/package/soap) with typescript definitions from a WSDL file.\n\nThis library uses [ts-morph](https://www.npmjs.com/package/ts-morph) to generate typescript code and [soap](https://github.com/vpulim/node-soap) for runtime. Inspired by Java [wsimport](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/wsimport.html) and [openapi-generator](https://github.com/OpenAPITools/openapi-generator).\n\n*NOTE:* Add [soap](https://www.npmjs.com/package/soap) to your npm runtime dependencies (`npm i soap`).\n\n## Install\n\n```sh\nnpm i @4success/wsdl-tsclient\n```\n\nor install it with `-g` to have CLI globally available.\n\n```sh\nnpm i -g @4success/wsdl-tsclient\n```\n\n## Usage\n\nYou can check example repository [wsdl-tsclient-example](https://github.com/dderevjanik/wsdl-tsclient-example)\n\n### Generate client using CLI\n\nEasiest way to generate client from is to use CLI. You need to provide only path to `.wsdl` file and\npath to output directory (`-o` param). If you want to generate **only typescript types** (no runtime code) for node-soap, you can pass `--emitDefinitionsOnly` param.\n\n`wsdl-tsclient ./soap.wsdl -o ./generated`\n\n`wsdl-tsclient ./resources/**/*.wsdl -o ./generated` - using glob\n\nyou can also use `npx`\n\n`npx @4success/wsdl-tsclient ./soap.wsdl -o ./generated`\n\n```bash\nwsdl-tsclient [options] [path]\n\nOptions:\n      --help                        Show help                          [boolean]\n  -v, --version                                                        [boolean]\n  -o                                Output directory         [string] [required]\n      --emitDefinitionsOnly         Generate only Definitions          [boolean]\n      --modelNamePreffix            Prefix for generated interface names[string]\n      --modelNameSuffix             Suffix for generated interface names[string]\n      --caseInsensitiveNames        Case-insensitive name while parsing\n                                    definition names                   [boolean]\n      --maxRecursiveDefinitionName  Maximum count of definition's with same name\n                                    but increased suffix. Will throw an error if\n                                    exceed                              [number]\n      --quiet                       Suppress all logs                  [boolean]\n      --verbose                     Print verbose logs                 [boolean]\n      --no-color                    Logs without colors                [boolean]\n\nExamples:\n    wsdl-tsclient file.wsdl -o ./generated/\n    wsdl-tsclient ./res/**/*.wsdl -o ./generated/\n```\n\n### Generate client programmatically\n\n```typescript\nimport { generateClient } from \"@4success/wsdl-tsclient\";\n\nparseAndGenerate(\"./path/to/MyWsdl.wsdl\", \"./generated/\");\n```\n\n### Using generated client in your project\n\n*Note:* Make sure you have [soap](https://www.npmjs.com/package/soap) package in your runtime dependencies (`npm i soap`)\n\n```typescript\nimport { createClientAsync } from \"./generated/MyWsdl\";\n\nconst client = await createClientAsync(\"./path/to/wsdl.wsdl\");\nclient.CallSoapMethodAsync();\n```\n\nSetting basic auth \n\n```typescript\nimport soap from \"soap\";\nimport { createClientAsync } from \"./generated/MyWsdl\";\n\nconst client = await createClientAsync(\"./path/to/wsdl.wsdl\");\n\nconst basicAuth = new soap.BasicAuthSecurity(auth.username, auth.password);\nclient.setSecurity(basicAuth);\n\nclient.CallSoapMethodAsync();\n```\n\nfor more information about the use of the client, read more about [soap](https://github.com/vpulim/node-soap)\n\n## How it works\n\n![overview](./docs/Overview.png)\n\n## License\n\nThe source code is licensed under the [MIT](./LICENSE) license\n\n## Contributors\n\n![Contributors](https://contrib.rocks/image?repo=dderevjanik/wsdl-tsclient)","readmeFilename":"README.md"}