Install with npm
npm install soap-nextInstall with yarn
yarn add soap-nextawait 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,
}soapClient.call(method: string, params: SoapBodyParams = {}, attributes: SoapBodyAttributes = {})
const result = await soapClient.call('CountryName', {
sCountryISOCode: 'US',
});const result = await soapClient.getAllMethods();soap-next was inspired by easysoap, rewritten in TypeScript for further improvement.
soap-next is released under the MIT License. See the bundled LICENSE file for details.