Last active
September 27, 2022 17:42
-
-
Save rajkumarbhatia/db243ef5c91bcf474d110f1ef650973a to your computer and use it in GitHub Desktop.
Bluedart soap apis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config() | |
const BLUEDART_URL = "https://netconnect.bluedart.com/API-QA/Ver1.10/Demo/" // This URL may be change, Please request new one from bluedart | |
const { | |
generateSOAPRequest | |
} = require("./helper") | |
const blueDartProfile = { | |
Api_type: "S", | |
LicenceKey: process.env.BLUEDART_LIC, | |
LoginID: process.env.BLUEDART_LOGIN_ID, | |
Version: "1.10", | |
}; | |
const args = { | |
pinCode: "146101", | |
profile : blueDartProfile, | |
} | |
const callMe = async () => { | |
try{ | |
const pincodeResult = await generateSOAPRequest(BLUEDART_URL + "ShippingAPI/Finder/ServiceFinderQuery.svc?wsdl", | |
args, | |
"http://tempuri.org/IServiceFinderQuery/GetServicesforPincode", | |
"GetServicesforPincode" | |
); | |
console.log(pincodeResult); | |
}catch(err){ | |
console.log("err : ",err) | |
} | |
} | |
callMe(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment