1.1.2 • Published 2 years ago

soap-next v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm version npm downloads npm downloads

Installing

Install with npm

npm install soap-next

Install with yarn

yarn add soap-next

Basic Usage

Create SOAP client

await SoapNext.create(url: string, params: SoapParams)

soapClient = await SoapNext.create('http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL');

SoapParams

interface SoapParams {
  soapHeaders?: Array<SoapHeaders>,
  httpHeaders?: HttpHeaders,
}

Call SOAP method

soapClient.call(method: string, params: SoapBodyParams = {}, attributes: SoapBodyAttributes = {})

const result = await soapClient.call('CountryName', {
  sCountryISOCode: 'US',
});

Get all SOAP method

const result = await soapClient.getAllMethods();

Credits

soap-next was inspired by easysoap, rewritten in TypeScript for further improvement.

License

soap-next is released under the MIT License. See the bundled LICENSE file for details.

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago