Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "twg-vin-decoder": {
- "name": "twg-vin-decoder",
- "wsdl": "https://uat.services.thewg.com/VinDecoderWS/vinDecoder?wsdl",
- "remotingEnabled": true,
- "connector": "soap"
- }
- module.exports = TwgVehicle => {
- TwgVehicle.getVehicle = (vin, callback) => {
- const request = {
- vin,
- login: {
- 'dealerNumber': 'PAL5113',
- 'token': 'SpBd!34t2+8-jTslH32',
- 'userName': 'springboard'
- }
- };
- return TwgVehicle.getMatchedVehiclesByVin(request, (err, response) => {
- console.log(response.request.body);
- return callback(err, response);
- });
- };
- TwgVehicle.remoteMethod(
- 'getVehicle',
- {
- http: { path: '/getvehicle', verb: 'get' },
- accepts: { arg: 'vin', type: 'string' },
- returns: { arg: 'vehicle', type: 'object' }
- }
- );
- };
- <?xml version="1.0" encoding="UTF-8"?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://bean.vindecodercommon.service.twg.com" xmlns:ns1="http://webservice.vindecodercommon.service.twg.com/" xmlns:ns2="http://exception.vindecodercommon.service.twg.com" xmlns:tns="http://webservice.vindecodercommon.service.twg.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soap:Body>
- <getMatchedVehiclesByVin>
- <vin>3VWL17AJ6GM312838</vin>
- <login>
- <dealerNumber>PAL5113</dealerNumber>
- <token>SpBd!34t2+8-jTslH32</token>
- <userName>springboard</userName>
- </login>
- </getMatchedVehiclesByVin>
- </soap:Body>
- </soap:Envelope>
- <?xml version="1.0" encoding="UTF-8"?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://bean.vindecodercommon.service.twg.com" xmlns:ns1="http://webservice.vindecodercommon.service.twg.com/" xmlns:ns2="http://exception.vindecodercommon.service.twg.com" xmlns:tns="http://webservice.vindecodercommon.service.twg.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soap:Body>
- <getMatchedVehiclesByVin xmlns="http://webservice.vindecodercommon.service.twg.com/">
- <vin>3VWL17AJ6GM312838</vin>
- <login>
- <ns0:dealerNumber>PAL5113</ns0:dealerNumber>
- <ns0:token>SpBd!34t2+8-jTslH32</ns0:token>
- <ns0:userName>springboard</ns0:userName>
- </login>
- </getMatchedVehiclesByVin>
- </soap:Body>
- </soap:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement