The XML messages received from the CargoWise eAdaptor Outbound Service may not be suitable for the destination they are being forwarded to. The eAdaptor Relay Service can be used to:
- Extract key details
- Reduce the message size
- Change the format from XML to JSON, CSV, etc.
Some destination services being forwarded to impose size limitations. Transformations can be used to extract only the essential details needed from the original CargoWise message to forward to the required service.
The following provides an example to illustrate what's possible.
Original XUS messages received from CargoWise (with irrelevant parts to the example removed):
<?xml version="1.0" encoding="utf-8"?><UniversalInterchange xmlns="http://www.cargowise.com/Schemas/Universal/2011/11" version="1.1">
<UniversalShipment xmlns="http://www.cargowise.com/Schemas/Universal/2011/11" version="1.1">
Transformed to a compact JSON message for forwarding on to the destination service:
correlationId isn't provided within the XUS and XUE messages themselves. The CargoWise eAdaptor Outbound Service provides this ID alongside the message, which the eAdaptor Relay can then pass along to the destination service. This unique ID can be used to track a message all the way from CargoWise to the destination system.