If you are interested in integrating CargoWise into your business and need assistance, please fill out our integration form and our team will get in touch with you.
A simplified SOAP client for interacting with CargoWise eAdaptor SOAP web services.
Install the package with npm:
npm install cargowise --save
const { CargoWiseClient, Config } = require("cargowise");
// Define your config
const config = new Config({
wsdlUrl: process.env.WSDL_URL,
clientId: process.env.CLIENT_ID,
username: process.env.SOAP_USERNAME,
password: process.env.SOAP_PASSWORD,
});
// Create a new CargoWiseClient instance
const cargoWiseClient = new CargoWiseClient(config);
// Define a message to send
const message = `...`;
// Send the message
cargoWiseClient
.send([{ message }])
.then((trackingIds) => console.log(trackingIds))
.catch((err) => console.error(err));
A class for creating a configuration object.
A class for interacting with the CargoWise SOAP web service. It has the following methods:
Sends a message to the CargoWise SOAP web service. Returns a promise that resolves to an array of tracking IDs.
The following environment variables are required:
WSDL_URL
: The URL of the CargoWise SOAP web service WSDL.CLIENT_ID
: The client ID for the CargoWise SOAP web service.SOAP_USERNAME
: The username for the CargoWise SOAP web service.SOAP_PASSWORD
: The password for the CargoWise SOAP web service.
This package has been developed by Docloop, an integrator for CargoWise.
Disclaimer: This is an unofficial package and not officially endorsed or maintained by CargoWise.