CargoSmart IG AK XML
CargoSmart IG AK XML
Implementation Guide
XML
Proprietary Notice
Document Information
Document Name: Message Acknowledgment Implementation Guideline (XML Format)
Owned By: CargoSmart Limited Document Version 3.0
5/F, Lakeside 2, No.10 Science Park West Avenue No:
Hong Kong Science Park
Shatin, New Territories, Hong Kong
Prepared By: CargoSmart Professional Services Document Version 25 Feb 2009
Date:
Preparation Date: 21 Feb 2006
Version History
Ver. No. Ver. Date Revised By Description
- Section 2.3.1 correct the type for MessageID, FileName and Version
- Section 2.3.1 update the maxlength of DateCreated/[TimeZone] from 10 to 30
CargoSmart
- Section 2.4.1 update the minlength of ReferenceNumber from 1 to 0
3.0 25 Feb 2009 Professional - Section 2.4.2 update the minlength of Description from 1 to 0
Services - Synchronize XSD and sample XML with IG Specification
- Sec 3.4 Update sample XML
CargoSmart
2.1 29 Oct 2008 Professional - Section 2.4.1 extend ReferenceNumber from 1/30 to 1/35
Services
CargoSmart
2.0 23 Oct 2008 Professional - Section 2.4.3(ADD) – Add element AckParties
Services
CargoSmart
1.1 6 Mar 2006 Professional Minor revisions to data elements
Services
CargoSmart
1.0 21 Feb 2006 Professional Initial creation
Services
Table Of Contents.
1. XML Schema/Structure
See Appendix B for the schema view.
Notes:
1. Interpreting Diagrams – Dotted lines represent optional data elements while solid lines represent
mandatory/required data elements.
2. fieldName/[child] is read as elementName/[attribute of the said elementName].
3. Min and Max refers to minimum and maximum lengths of the field it describes. N/A if the element
does not have a value or a parent element.
4. Type describes what kind of data a certain element holds (e.g AN for Alpha Numeric). N/A if the
element does have a value or a parent element.
5. Req describes if the element is optional (O) or mandatory (M).
6. Refer to Note/s of each section if any for any other additional information.
DATA ATTRIBUTES:
N/A
2.2 Ack_Message
- Element representing information of each transaction.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
GeneralInfo N/A N/A M See Section 2.3.
AckDetails N/A N/A N/A See Section 2.4
DATA ATTRIBUTES:
N/A
2.3 GeneralInfo
- As the name implies, describes the general information regarding the transaction including the
file/transaction itself.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
TransactionInfo N/A N/A M See Section 2.3.1.
AN 1/11 M Reference number assigned by
CSReferenceNumber CargoSmart.
DataSource AN 0/1 O Indicates the source of data.
TransactionNumber AN 1/14 M Unique reference/control number of
© CargoSmart Proprietary Page 4 of 21
Last saved: 23 Apr 2009 CS-SYSINT-STD-IG-AK.XML
Message Acknowledgment Implementation Guideline
(XML Format)
DATA ATTRIBUTES:
N/A
Note/s:
MessageStatus should only be:
Code Description
1 Received
A Accepted
E Accepted with errors/warnings noted
W Rejected. Failed validation process
R Rejected. Failed conversion process.
2.3.1 TransactionInfo
- Gives the description of the file itself for identification.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
N 1/14 M System generated running number,
until 99999999999999 and will reset
back to 1.
BatchNumber Serves as a unique control number.
AN 1/15 M Trading partner ID for incoming,
MessageSender “CARGOSMART” for outgoing
© CargoSmart Proprietary Page 5 of 21
Last saved: 23 Apr 2009 CS-SYSINT-STD-IG-AK.XML
Message Acknowledgment Implementation Guideline
(XML Format)
DATA ATTRIBUTES:
Type Min/ Req Description
Name Max
AN 0/30 O Time Zone where the date it
DateCreated/[TimeZone] describes happened.
Note/s:
1. TimeZone can be set to LOCAL which refers to the local time zone where the file was
processed or the event happened.
2.4 AckDetails
- Shows the detailed description of the error encountered if any, including the external
references of the message being acknowledged.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
ExternalReferences N/A N/A O See section 2.4.1.
Notes N/A N/A C See section 2.4.2.
AckParties N/A N/A O See section 2.4.3
DATA ATTRIBUTES:
N/A
2.4.1 ExternalReferences/References
- Describes the external references attached to the messaged being acknowledged.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
AN 0/5 C Describes the type of Reference
Number used to qualify/identify the
ReferenceType reference number
AN 0/60 C Free-form description (reference
name) of the reference data element.
Required if Reference Type is ZZ or
ReferenceName blank.
ReferenceNumber AN 0/35 C Reference numbers attached to a
© CargoSmart Proprietary Page 6 of 21
Last saved: 23 Apr 2009 CS-SYSINT-STD-IG-AK.XML
Message Acknowledgment Implementation Guideline
(XML Format)
DATA ATTRIBUTES:
N/A
Note/s:
2.4.2 Notes/Error
- Describes the error encountered when processing the message being acknowledged.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
AN 1/5 M Error Code encountered when
processing the message. See
Appendix 3.1 for the code and
Code description.
Description AN 0/60 O Description of the error encountered
DATA ATTRIBUTES:
N/A
Note/s:
2.4.3 AckParties/Party
- Describes the related parties, who acknowledged the message, and who request the
acknowledgement.
DATA ELEMENTS:
Type Min/ Req Description
Name Max
N/A 1/35 M Fill with SCAC code if the party role is
PartyID Carrier.
PartyName N/A 0/35 O
DATA ATTRIBUTES:
Type Min/ Req Description
Name Max
AN 1/15 M Used to indentify the party role,
Party/[Role] carrier or requestor
Note/s:
Role
Carrier
Requestor
Appendix
3.1 Error Codes
External
Description
Code
89 THERE IS NO CONTAINER OR BOOKING ASSOCIATED WITH THE CARGO
88 TOTAL CARGO GROSS WEIGHT EXCEEDED THE CONTAINER GROSS WEIGHT
87 REQUESTED ON-BOARD DATE IS INVALID
86 CARGO DESCRIPTION MUST NOT CONTAIN NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
85 GIVEN CARRIER NOT SUPPORTED
84 REQUESTED ACTION NOT SUPPORTED
83 CARGO MARKS & NUMBERS MUST NOT CONSTAIN NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
82 UNSUPPORTED PARTY TYPE
81 MISSING LENGTH OR WIDTH OR HEIGHT
80 INCORRECT HEIGHT
79 INCORRECT LENGTH
78 UNSUPPORTED MEASUREMENT UNIT
77 MISSING MEASUREMENT UNIT
76 INCORRECT WIDTH
75 B/L CARGO SUMMARY DESCRIPTION CONSTAINS NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
74 INVALID DRAFT INDICATOR
73 UNSUPPORTED PAYMENT OPTION
72 REQUESTED DRAFT TRANSMISSION IS NOT SUPPORTED
71 UNSUPPORTED CARGO TYPE
External
Description
Code
70 NET WEIGHT IS NOT VALID
69 UNSUPPORTED NET WEIGHT UNIT
68 VOLUME IS NOT VALID
67 UNSUPPORTED VOLUME WEIGHT UNIT
66 UNSUPPORTED CERTIFICATION/CLAUSE CODE
65 CERTIFICATION/CLAUSE TEXT CONSTAINS NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
64 EMAIL HAS TO BE IN THE FORMAT OF xxx@xxxxxxx.xxxxx
63 UNSUPPORTED PAYABLE BY TYPE
62 GROSS WEIGHT IS NOT VALID
61 UNSUPPORTED GROSS WEIGHT UNIT
60 UNSUPPORTED CONTAINER REQUEST TYPE
59 UNRECOGNIZED STATUS INDICATOR
58 UNSUPPORTED HAZARDOUS CLASSIFICATION CODE
57 INVALID DG PACKAGING GROUP CODE
56 INVALID DOCUMENT TYPE CODE
55 FAX AREA CODE CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
54 FAX COUNTRY CODE CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
53 FAX NUMBER CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
52 INVALID FREIGHT TYPE
51 NUMBER OF COPIES REQUESTED EXCEEDED THE LIMIT
50 REQUESTED TRANSMISSION MODE FOR THE REQUESTED DOCUMENT TYPE IS NOT SUPPORTED
49 PHONE AREA CODE CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
48 PHONE COUNTRY CODE CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
47 PHONE NUMBER CAN ONLY CONTAIN NUMERIC CHARACTERS (0-9)
46 UNSUPPORTED SCHEDULE TYPE CODE
45 INVALID TEMPERATURE
44 UNSUPPORTED TEMPERATURE UNIT
43 UNSUPPORTED VENT SETTING CODE
42 UNRECOGNIZED EXT. VESSEL CODE TYPE
41 UNRECOGNIZED LOCATION FUNCTION CODE
40 SI REMARKS CONSTAINS NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
39 SPECIAL B/L HANDLING INSTRUCTIONS CONSTAINS NON-STANDARD KEYBOARD AND/OR CONTROL CHARACTERS
38 THE CONTAINER INFORMATION IS DIFFERENT FROM THE CONTAINER INFORMATION IN THE BOOKING(S).
37 THE PARTY INFORMATION <PartyType> IS DIFFERENT FROM THE PARTY INFORMATION IN BOOKING(S).
36 NON-EXISTING BOOKING NUMBER
35 UNSUPPORTED PACKAGE TYPE
34 NON-ISO CONTAINER SIZE/TYPE
33 CONTAINER IS NOT ASSOCIATED WITH A BOOKING
32 OTHER INFORMATION REQUIRED FOR TRANSMISSION MODE "OT"
31 UNSUPPORTED CARRIER RATE REFERENCE TYPE
30 INVALID CARRIER'S CUSTOMER ID
29 INVALID CARGOSMART CUSTOMER ID
28 NON-EXISTING SCHEDULE K/D CODE
27 MISSING SCHEDULE K/D CODE
26 MISSING SCHEDULE TYPE CODE
25 NON-EXISTING UN/LOCATION CODE
24 REFERENCE NAME REQUIRED FOR REFERENCE TYPE "OTH"
External
Description
Code
23 UNSUPPORTED REFERENCE TYPE
22 THE TRAFFIC MODE IS DIFFERENT FROM THE TRAFFIC MODE IN BOOKING(S).
21 UNSUPPORTED SEAL TYPE
20 SEAL TYPE NAME REQUIRED FOR SEAL TYPE "OT"
element Ack_Root
diagram
children Ack_Message
element Ack_Root/Ack_Message
diagram
element Ack_Root/Ack_Message/GeneralInfo
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/BatchNumber
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/MessageSender
Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/MessageSender
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/MessageRecipient
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/MessageI
Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/MessageIDD
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/DateCreated
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/Fil
Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/FileName
eName
diagram
element Ack_Root/Ack_Message/GeneralInfo/TransactionInfo/Version
diagram
element Ack_Root/Ack_Message/GeneralInfo/CSReferenceNumber
diagram
element Ack_Root/Ack_Message/GeneralInfo/DataSource
diagram
facets enumeration 0
enumeration 1
enumeration 2
element Ack_Root/Ack_Message/GeneralInfo/TransactionNumber
diagram
element Ack_Root/Ack_Message/GeneralInfo/MessageStatus
diagram
facets enumeration 1
enumeration A
© CargoSmart Proprietary Page 14 of 21
Last saved: 23 Apr 2009 CS-SYSINT-STD-IG-AK.XML
Message Acknowledgment Implementation Guideline
(XML Format)
enumeration E
enumeration W
enumeration R
element Ack_Root/Ack_Message/GeneralInfo/MessageType
diagram
element Ack_Root/Ack_Message/AckDetails
diagram
element Ack_Root/Ack_Message/AckDetails/ExternalReferences
Ack_Root/Ack_Message/AckDetails/ExternalReferences
diagram
children References
element Ack_Root/Ack_Message/AckDetails/ExternalReferences/References
diagram
element Ack_Root/Ack_Message/AckDetails/ExternalReferences/References/ReferenceType
diagram
facets enumeration SI
enumeration CSI
enumeration IV
enumeration PO
enumeration SO
enumeration FW
enumeration SRN
enumeration FCN
enumeration BN
enumeration BM
enumeration ZZ
element Ack_Root/Ack_Message/AckDetails/ExternalReferences/References/ReferenceName
diagram
element Ack_Root/Ack_Message/AckDetails/ExternalReferences/References/ReferenceNumber
diagram
element Ack_Root/Ack_Message/AckDetails/Notes
diagram
children Error
element Ack_Root/Ack_Message/AckDetails/Notes/Error
diagram
element Ack_Root/Ack_Message/AckDetails/Notes/Error/Code
diagram
element Ack_Root/Ack_Message/AckDetails/Notes/Error/Description
diagram
element Ack_Root/Ack_Message/AckDetails/AckParties
diagram
children Party
element Ack_Root/Ack_Message/AckDetails/AckParties/Party
diagram
type Party
complexType DateTime
diagram
attribute DateTime/@TimeZone
type restriction of xs:string
complexType Party
diagram
attribute Party/@Role
type restriction of xs:string
element Party/PartyID
diagram
element Party/PartyName
Party/PartyName
diagram