{"id":13847360,"url":"https://github.com/dderevjanik/wsdl-tsclient","last_synced_at":"2025-08-31T08:09:16.511Z","repository":{"id":37708123,"uuid":"343509735","full_name":"dderevjanik/wsdl-tsclient","owner":"dderevjanik","description":":page_facing_up: Generate typescript client from WSDL","archived":false,"fork":false,"pushed_at":"2025-06-02T21:24:53.000Z","size":935,"stargazers_count":121,"open_issues_count":57,"forks_count":78,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-08T23:16:25.415Z","etag":null,"topics":["generator","soap","soap-client","typescript","web-service","wsdl","wsdl-generation","wsdl-tsclient"],"latest_commit_sha":null,"homepage":"https://npm.im/wsdl-tsclient","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dderevjanik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-01T18:01:44.000Z","updated_at":"2025-07-29T18:27:34.000Z","dependencies_parsed_at":"2023-12-14T18:50:47.764Z","dependency_job_id":"bfe6a25f-9171-4a17-9248-3991c6a2f6c8","html_url":"https://github.com/dderevjanik/wsdl-tsclient","commit_stats":{"total_commits":140,"total_committers":8,"mean_commits":17.5,"dds":0.09999999999999998,"last_synced_commit":"60d1eda3a1a5cacf5a42a7e4bb32259ccea0622f"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/dderevjanik/wsdl-tsclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dderevjanik%2Fwsdl-tsclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dderevjanik%2Fwsdl-tsclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dderevjanik%2Fwsdl-tsclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dderevjanik%2Fwsdl-tsclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dderevjanik","download_url":"https://codeload.github.com/dderevjanik/wsdl-tsclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dderevjanik%2Fwsdl-tsclient/sbom","scorecard":{"id":330186,"data":{"date":"2025-08-11","repo":{"name":"github.com/dderevjanik/wsdl-tsclient","commit":"98a9011179b0c59d45fd019fa1c41d924cdfb891"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 5/22 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/qa.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release-please.yml:18","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/qa.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dderevjanik/wsdl-tsclient/qa.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/qa.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/dderevjanik/wsdl-tsclient/qa.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-please.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/dderevjanik/wsdl-tsclient/release-please.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-please.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/dderevjanik/wsdl-tsclient/release-please.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-please.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/dderevjanik/wsdl-tsclient/release-please.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-8hc4-vh64-cxmj","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-75v8-2h7p-7m2m","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-9p8x-f768-wp2g","Warn: Project is vulnerable to: GHSA-x3m8-899r-f7c3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:22:52.183Z","repository_id":37708123,"created_at":"2025-08-18T03:22:52.183Z","updated_at":"2025-08-18T03:22:52.183Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272953955,"owners_count":25021136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["generator","soap","soap-client","typescript","web-service","wsdl","wsdl-generation","wsdl-tsclient"],"created_at":"2024-08-04T18:01:17.922Z","updated_at":"2025-08-31T08:09:16.486Z","avatar_url":"https://github.com/dderevjanik.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# WSDL TSClient\n\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 wsdl-tsclient\n```\n\nor install it with `-g` to have CLI globally available.\n\n```sh\nnpm i -g wsdl-tsclient\n```\n\nor you can use `npx` to run it without installing\n\n```sh\nnpx wsdl-tsclient ./path/to/wsdl.wsdl -o ./generated/\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 wsdl-tsclient ./soap.wsdl -o ./generated`\n\n```bash\nwsdl-tsclient [options] [path]\n\nOptions:\n      --help                        Show help                          [boolean]\n  -v, --version                     Show version number                [boolean]\n  -o                                Output directory for generated TypeScript\n                                    client                   [string] [required]\n      --emitDefinitionsOnly         Generate definitions only (interfaces and\n                                    types)                             [boolean]\n      --modelNamePreffix            Prefix for generated interface names[string]\n      --modelNameSuffix             Suffix for generated interface names[string]\n      --modelPropertyNaming         Property naming convention ('camelCase' or\n                                    'PascalCase')                       [string]\n      --caseInsensitiveNames        Parse WSDL definitions case-insensitively\n                                                                       [boolean]\n      --useWsdlTypeNames            Use wsdl schema type names instead of\n                                    parameter names for generated interface\n                                    names                              [boolean]\n      --maxRecursiveDefinitionName  Maximum count of definitions with the same\n                                    name but increased suffix. Will throw an\n                                    error if exceeded.                  [number]\n      --esm                         Generate imports with .js suffix   [boolean]\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 \"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## Develpoment\n\n- Clone the repository\n- Install dependencies `npm i`\n- Run tests `npm test`\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)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdderevjanik%2Fwsdl-tsclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdderevjanik%2Fwsdl-tsclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdderevjanik%2Fwsdl-tsclient/lists"}