Hi All,
I am sure this is simple but is eluding me. My brain is getting ready for 2021.
Here is the XLM I am getting back.
<ITEMIZEDCHARGES>
<ITEM TYPE="CHARGE" FOR="FREIGHT" AMOUNT="565.38" DESCRIPTION="45 LB CL70, 1 PLT @ 40 x 24 x 36 IN"/>
<ITEM TYPE="DISCOUNT" FOR="SHIPPER" AMOUNT="-491.88" DESCRIPTION="SHIPPER DISCOUNT" RATE="87%"/>
<ITEM TYPE="CHARGE" FOR="MCADJ" AMOUNT="76.50" DESCRIPTION="ABSOLUTE MIN CHARGE ADJUSTMENT"/>
<ITEM TYPE="CHARGE" FOR="SS" AMOUNT="0.00" DESCRIPTION="/ SINGLE SHIPMENT"/>
<ITEM TYPE="CHARGE" FOR="FSC" AMOUNT="33.45" DESCRIPTION="/ FUEL SURCHARGE" RATE="22.3%"/>
<ITEM TYPE="DISCOUNT" FOR="DYNDISC" AMOUNT="-61.05" DESCRIPTION="DYNAMIC DISCOUNT"/>
</ITEMIZEDCHARGES>
My code
cnt_ItemizedCharges Int(5);
Dcl-ds ItemizedCharges Dim(10);
Item_Type Char(10);
// For Char(10);
Amount Char(10);
Description VarChar(100);
Rate Char(10);
End-Ds;
XMLOptions = 'doc=file +
path=ABF +
case=convert +
allowextra=yes +
allowmissing=yes +
countprefix=cnt_ +
ns=remove';
Monitor;
// Parse Response XML Doc
xml-into ABF %xml(%Trim(ResponseFile) : %Trim(XMLOptions));
The cnt_ItemizedCharges is coming back as 1 and the ItemizedCharges DS is blank.
How should this DS be formatted?
I had to comment out the For because the compiler sees it as a reserved word.
How do I rename the For so I can have it in the DS?
Subject to Change Notice:
WalzCraft reserves the right to improve designs, and to change specifications without notice.
Confidentiality Notice:
This message and any attachments may contain confidential and privileged information that is protected by law. The information contained herein is transmitted for the sole use of the intended recipient(s) and should "only" pertain to "WalzCraft" company matters. If you are not the intended recipient or designated agent of the recipient of such information, you are hereby notified that any use, dissemination, copying or retention of this email or the information contained herein is strictly prohibited and may subject you to penalties under federal and/or state law. If you received this email in error, please notify the sender immediately and permanently delete this email. Thank You
WalzCraft PO Box 1748 La Crosse, WI, 54602-1748
www.walzcraft.com<
http://www.walzcraft.com> Phone: 1-800-237-1326
As an Amazon Associate we earn from qualifying purchases.