All Projects → dderevjanik → wsdl-tsclient

dderevjanik / wsdl-tsclient

Licence: MIT License
📄 Generate typescript client from wsdl

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wsdl-tsclient

PackageBase
Contains base classes from which the generated classes from PackageGenerator inherit
Stars: ✭ 19 (-36.67%)
Mutual labels:  soap, wsdl, soap-client
xsender
Java library for sending XML files through SOAP - SUNAT
Stars: ✭ 15 (-50%)
Mutual labels:  wsdl, wsdl-generation, web-service
Python Zeep
A modern/fast python SOAP client based on lxml / requests
Stars: ✭ 1,638 (+5360%)
Mutual labels:  soap, wsdl, soap-client
xsdata
Naive XML & JSON Bindings for python
Stars: ✭ 144 (+380%)
Mutual labels:  soap, wsdl
soap-spring-boot-cxf
Sample Project for producing & testing a SOAP-WSDL-driven Service with Spring Boot, Apache CXF & JAX-WS
Stars: ✭ 56 (+86.67%)
Mutual labels:  soap, wsdl
Savon
Heavy metal SOAP client
Stars: ✭ 2,012 (+6606.67%)
Mutual labels:  soap, soap-client
wsdl-to-ts
Generate TypeScript typings for WSDL services
Stars: ✭ 60 (+100%)
Mutual labels:  soap, wsdl
laravel-soap
Laravel Soap Client
Stars: ✭ 140 (+366.67%)
Mutual labels:  soap, soap-client
cxf-spring-boot-starter
Enterprise & production ready SOAP webservices powered by Spring Boot & Apache CXF
Stars: ✭ 129 (+330%)
Mutual labels:  soap, wsdl
xsd-parser-rs
A xsd/wsdl => rust code generator written in rust
Stars: ✭ 45 (+50%)
Mutual labels:  soap, wsdl
hexo-generator-index2
Filtered index generator for Hexo
Stars: ✭ 40 (+33.33%)
Mutual labels:  generator
badaso
The API & platform builder, build your apps 10x faster even more, it's open source & 100% free !
Stars: ✭ 650 (+2066.67%)
Mutual labels:  generator
avro-schema-generator
Library for generating avro schema files (.avsc) based on DB tables structure
Stars: ✭ 38 (+26.67%)
Mutual labels:  generator
correios-java-sdk
Correios Java SDK
Stars: ✭ 28 (-6.67%)
Mutual labels:  wsdl
password
Fast and secure password generator and library
Stars: ✭ 38 (+26.67%)
Mutual labels:  generator
nomnoml-cli
Generates images from nomnoml diagram sources in a NodeJS module or on the command line
Stars: ✭ 20 (-33.33%)
Mutual labels:  generator
Jacob
A lightweight library to provide coroutines in Java
Stars: ✭ 14 (-53.33%)
Mutual labels:  generator
faker
Faker is a Nim package that generates fake data for you.
Stars: ✭ 28 (-6.67%)
Mutual labels:  generator
mybatis-generator-plus
轻度扩展mybatis-generator-core插件,与官方插件兼容。
Stars: ✭ 62 (+106.67%)
Mutual labels:  generator
prisma-tgql-types-gen
◭ Prisma generator for generating TypeGraphQL class types and enums with allowing to edit the generated output without being overwritten 💪
Stars: ✭ 32 (+6.67%)
Mutual labels:  generator

WSDL TSClient

travis-status license Known Vulnerabilities npm-version

Example how to generate and use wsdl-tsclient: wsdl-tsclient-example

Generate a soap client with typescript definitions from a WSDL file.

This library uses ts-morph to generate typescript code and soap for runtime. Inspired by Java wsimport and openapi-generator.

NOTE: Add soap to your npm runtime dependencies (npm i soap).

Install

npm i wsdl-tsclient

or install it with -g to have CLI globally available.

npm i -g wsdl-tsclient

Usage

You can check example repository wsdl-tsclient-example

Generate client using CLI

Easiest way to generate client from is to use CLI. You need to provide only path to .wsdl file and path to output directory (-o param). If you want to generate only typescript types (no runtime code) for node-soap, you can pass --emitDefinitionsOnly param.

wsdl-tsclient ./soap.wsdl -o ./generated

wsdl-tsclient ./resources/**/*.wsdl -o ./generated - using glob

you can also use npx

npx wsdl-tsclient ./soap.wsdl -o ./generated

wsdl-tsclient [options] [path]

Options:
      --help                        Show help                          [boolean]
  -v, --version                                                        [boolean]
  -o                                Output directory         [string] [required]
      --emitDefinitionsOnly         Generate only Definitions          [boolean]
      --modelNamePreffix            Prefix for generated interface names[string]
      --modelNameSuffix             Suffix for generated interface names[string]
      --caseInsensitiveNames        Case-insensitive name while parsing
                                    definition names                   [boolean]
      --maxRecursiveDefinitionName  Maximum count of definition's with same name
                                    but increased suffix. Will throw an error if
                                    exceed                              [number]
      --quiet                       Suppress logs                      [boolean]
      --verbose                     Print verbose logs                 [boolean]
      --no-color                    Logs without colors                [boolean]

Examples:
    wsdl-tsclient file.wsdl -o ./generated/
    wsdl-tsclient ./res/**/*.wsdl -o ./generated/

Generate client programmatically

import { generateClient } from "wsdl-tsclient";

parseAndGenerate("./path/to/MyWsdl.wsdl", "./generated/");

Using generated client in your project

Note: Make sure you have soap package in your runtime dependencies (npm i soap)

import { createClientAsync } from "./generated/MyWsdl";

const client = await createClientAsync("./path/to/wsdl.wsdl");
client.CallSoapMethodAsync();

for more information about the use of the client, read more about soap

How it works

overview

License

The source code is licensed under the MIT license

Contributors

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].