Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
cargowise-eadapter
Advanced tools
CargoWise eAdapter client for Node.js
The eAdapter is how you send EDI messages into CW1. It's a picky about how you compress, wrap, and send your XML. This library makes it much easier.
The eAdapter soap service provides 3 methods:
SendStream does not return anything. It simply accepts your message indicating that CW1 received the message. The way you find out what's happened to your message is by using a tracking ID. The client generates a UUID tracking id and sends it with your message. You can then look in the CW1 EDI Interchange to find the status of your message. If you have read access to the CW1 database, you can programmatically track the status and progress of your EDI message.
import { EAdapterClient } from "cargowise-eadapter";
const eAdapter = new EAdapterClient({
wsdlUrl: "https://.../eAdapterStreamedService.wsdl",
clientId: "...",
username: "...",
password: "...",
});
const xml = `<UniversalInterchange...`;
const [trackingId] = await eAdapter.send([xml]);
console.log(trackingId);
The code is well commented and self documenting. For most integrations, you'll just need the EAdapterClient. However, if you need more control over your integration, feel free to pull out the parts you need.
Simply provide the wsdl url, and authentication credentials to setup an eAdapter client.
See src/config.ts for more documentation.
Pings the soap service to make sure you are connected and authenticated. It returns true on success. Otherwise, it throws an error.
Pass in a list of xml messages you wish to send.
trackingIds = await eAdapter.send([
// A string is assumed to be a universal XML
"<UniversalInterchange>...<UniversalShipment...",
// If you need more specificity you can give an An object describing your message
{
message: "<UniversalInterchange>...<Native...",
// The type of message you wish to send
type: "native-xml", // Defaults to "universal-xml"
// The sending system ID recorded as sender on the EDI Interchange
clientId: "...", // Defaults to config.clientId
// The UUID to track your message
trackingId: "...", // When not provided, a UUID will be generated for you
},
]);
See src/eAdapterClient.ts for more documentation.
We at Steele Consulting have built several large systems that integrate with CW1. We're happy to help. Find us at steeleconsult.com.
This is an unofficial/3rd party library not affiliated/sponsored by with CargoWise or WiseTech.
Please refer to the official documentation for most up to date information on how to integrate with CargoWise.
MIT
FAQs
CargoWise eAdapter client
The npm package cargowise-eadapter receives a total of 1 weekly downloads. As such, cargowise-eadapter popularity was classified as not popular.
We found that cargowise-eadapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.