ReeganExE / node-soap-example

Easy SOAP with Node.js & TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Node.js SOAP client with WSDL

npm install

Generate types

npm run wsdl -- 'http://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl'

npm run wsdl -- 'http://geoservices.tamu.edu/Services/Geocode/WebService/GeocoderService_V04_01.asmx?wsdl'

OR

wsdl-to-ts --outdir=./src 'http://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl'

wsdl-to-ts --outdir=./src 'http://geoservices.tamu.edu/Services/Geocode/WebService/GeocoderService_V04_01.asmx?wsdl'

Run the example

npm start

# {
#   Country: 'Australia',
#   Organization: '',
#   Latitude: -33.494,
#   Longitude: 143.2104,
#   AreaCode: '0',
#   TimeZone: '',
#   HasDaylightSavings: false,
#   Certainty: '90',
#   RegionName: '',
#   CountryCode: 'AU'
# }

About

Easy SOAP with Node.js & TypeScript


Languages

Language:TypeScript 100.0%