-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
838 additions
and
7 deletions.
There are no files selected for viewing
140 changes: 140 additions & 0 deletions
140
importers/xml_examples/Retail/01_Green_to_pink_shipment.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaVersion="0" creationDate="2001-12-17T09:30:47Z" xsi:schemaLocation="urn:epcglobal:epcis:xsd:1 http://www.gs1si.org/BMS/epcis/1_2/EPCglobal-epcis-1_2.xsd"> | ||
<EPCISHeader> | ||
<sbdh:StandardBusinessDocumentHeader> | ||
<sbdh:HeaderVersion>1.0</sbdh:HeaderVersion> | ||
<sbdh:Sender><!-- Mandatory --> | ||
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Green</sbdh:Identifier> <!-- Mandatory --> <!-- Creator PROVIDER_ID--> | ||
<sbdh:ContactInformation> <!-- Mandatory--> | ||
<sbdh:Contact>Abraham Smith</sbdh:Contact> <!-- Mandatory --> | ||
<sbdh:EmailAddress>[email protected]</sbdh:EmailAddress> <!-- Optional --> | ||
</sbdh:ContactInformation> | ||
</sbdh:Sender> | ||
<sbdh:Receiver> <!-- Mandatory --> | ||
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Pink</sbdh:Identifier> <!-- Mandatory--> | ||
<sbdh:ContactInformation> <!-- Mandatory--> | ||
<sbdh:Contact>Betty Johnson</sbdh:Contact> <!-- Mandatory --> | ||
<sbdh:EmailAddress>[email protected]</sbdh:EmailAddress> <!-- Optional --> | ||
</sbdh:ContactInformation> | ||
</sbdh:Receiver> | ||
<sbdh:DocumentIdentification> <!-- Mandatory--> | ||
<sbdh:Standard>GS1</sbdh:Standard> | ||
<sbdh:TypeVersion>V1.3</sbdh:TypeVersion> <!-- Document version--> | ||
<sbdh:InstanceIdentifier>100001</sbdh:InstanceIdentifier> <!-- UNIQUE IDENTIFIER OF DOCUMENT - PRIMARY KEY IN ERP --> | ||
<sbdh:Type>Shipment</sbdh:Type> <!-- DEFINED IN SCHEMA Example; order, invoice, debitCreditAdvice --> | ||
<sbdh:CreationDateAndTime>2018-01-01T00:31:52Z</sbdh:CreationDateAndTime> <!-- Optional --> | ||
</sbdh:DocumentIdentification> | ||
<sbdh:BusinessScope> <!-- Optional --> | ||
<sbdh:Scope> | ||
<sbdh:Type>BusinessProcess</sbdh:Type> | ||
<sbdh:InstanceIdentifier>Shipment/version2-251</sbdh:InstanceIdentifier> | ||
<sbdh:Identifier>EDI-Shipment</sbdh:Identifier> | ||
</sbdh:Scope> | ||
</sbdh:BusinessScope> | ||
</sbdh:StandardBusinessDocumentHeader> | ||
<extension> | ||
<EPCISMasterData> | ||
<VocabularyList> | ||
<Vocabulary type="urn:ot:object:actor"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:ot:object:actor:id:Company_Green"> | ||
<attribute id="urn:ot:object:actor:name">Green</attribute> | ||
<attribute id="urn:ot:object:actor:category">Company producer</attribute> | ||
<attribute id="urn:ot:object:actor:wallet">0xBbAaAd7BD40602B78C0649032D2532dEFa23A4C0</attribute> | ||
</VocabularyElement> | ||
<VocabularyElement id="urn:ot:object:actor:id:Company_Pink"> | ||
<attribute id="urn:ot:object:actor:name">Pink</attribute> | ||
<attribute id="urn:ot:object:actor:category">Company</attribute> | ||
<attribute id="urn:ot:object:actor:wallet">0xFfDDAd7BD40602B78C0649032D2532dEFa23A4C0</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:location"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:epc:id:sgln:Building_Green"> | ||
<attribute id="urn:ot:object:location:category">Building</attribute> | ||
<attribute id="urn:ot:object:location:description">Producer Warehouses</attribute> | ||
<children> | ||
<id>urn:epc:id:sgln:Building_Green_V1</id> | ||
<id>urn:epc:id:sgln:Building_Green_V2</id> | ||
</children> | ||
<extension> | ||
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Green</attribute> | ||
</extension> | ||
</VocabularyElement> | ||
<VocabularyElement id="urn:epc:id:sgln:Building_Pink"> | ||
<attribute id="urn:ot:object:location:category">Building</attribute> | ||
<attribute id="urn:ot:object:location:description">Pink distributor warehouse</attribute> | ||
<extension> | ||
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Pink</attribute> | ||
</extension> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:product"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:ot:object:product:id:Product_1"> | ||
<attribute id="urn:ot:object:product:category">Beverage</attribute> | ||
<attribute id="urn:ot:object:product:description">Wine Pallet</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:batch"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:epc:id:sgtin:Batch_1"> | ||
<attribute id="urn:ot:object:product:batch:productId">urn:ot:object:product:id:Product_1</attribute> | ||
<attribute id="urn:ot:object:product:batch:productionDate">2017-31-12T00:01:54Z</attribute> | ||
<attribute id="urn:ot:object:product:batch:expirationDate">2020-31-12T00:01:54Z</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
</VocabularyList> | ||
</EPCISMasterData> | ||
</extension> | ||
</EPCISHeader> | ||
<EPCISBody> | ||
<EventList> | ||
<ObjectEvent> | ||
<!-- Transport Shipment--> | ||
<eventTime>2018-01-01T01:00:00.000-04:00</eventTime> <!-- Mandatory--> | ||
<eventTimeZoneOffset>-04:00</eventTimeZoneOffset> <!-- Mandatory--> | ||
<epcList> | ||
<epc>urn:epc:id:sgtin:Batch_1</epc> | ||
</epcList> | ||
<action>OBSERVE</action> <!-- Mandatory--> | ||
<bizStep>urn:epcglobal:cbv:bizstep:shipping</bizStep> <!-- Optional --> | ||
<disposition>urn:epcglobal:cbv:disp:active</disposition> <!-- Optional --> | ||
<readPoint> <!-- Optional --> | ||
<id>urn:epc:id:sgln:Building_Green_V2</id> | ||
</readPoint> | ||
<bizLocation> <!-- Optional --> | ||
<id>urn:epc:id:sgln:Building_Green</id> | ||
</bizLocation> | ||
<extension> | ||
<quantityList> <!-- Optional --> | ||
<quantityElement> | ||
<epcClass>urn:epc:id:sgtin:Batch_1</epcClass> | ||
<quantity>10</quantity> | ||
<uom>KG</uom> | ||
</quantityElement> | ||
</quantityList> | ||
<extension> | ||
<documentId>1</documentId> | ||
<OTEventClass>urn:ot:event:Transport</OTEventClass> | ||
<OTEventClass>urn:ot:event:Ownership</OTEventClass> | ||
<OTEventType>Sales</OTEventType> | ||
<sourceList> | ||
<source type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Green</source> | ||
</sourceList> | ||
<destinationList> | ||
<destination type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Pink</destination> | ||
</destinationList> | ||
</extension> | ||
</extension> | ||
</ObjectEvent> | ||
</EventList> | ||
</EPCISBody> | ||
</epcis:EPCISDocument> |
140 changes: 140 additions & 0 deletions
140
importers/xml_examples/Retail/02_Green_to_Pink_receipt.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" schemaVersion="0" creationDate="2001-12-17T09:30:47Z" xsi:schemaLocation="urn:epcglobal:epcis:xsd:1 http://www.gs1si.org/BMS/epcis/1_2/EPCglobal-epcis-1_2.xsd"> | ||
<EPCISHeader> | ||
<sbdh:StandardBusinessDocumentHeader> | ||
<sbdh:HeaderVersion>1.0</sbdh:HeaderVersion> | ||
<sbdh:Sender> <!-- Mandatory --> | ||
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Pink</sbdh:Identifier> <!-- Mandatory--> | ||
<sbdh:ContactInformation> <!-- Mandatory--> | ||
<sbdh:Contact>Betty Johnson</sbdh:Contact> <!-- Mandatory --> | ||
<sbdh:EmailAddress>[email protected]</sbdh:EmailAddress> <!-- Optional --> | ||
</sbdh:ContactInformation> | ||
</sbdh:Sender> | ||
<sbdh:Receiver><!-- Mandatory --> | ||
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:Company_Green</sbdh:Identifier> <!-- Mandatory --> <!-- Creator PROVIDER_ID--> | ||
<sbdh:ContactInformation> <!-- Mandatory--> | ||
<sbdh:Contact>Abraham Smith</sbdh:Contact> <!-- Mandatory --> | ||
<sbdh:EmailAddress>[email protected]</sbdh:EmailAddress> <!-- Optional --> | ||
</sbdh:ContactInformation> | ||
</sbdh:Receiver> | ||
<sbdh:DocumentIdentification> <!-- Mandatory--> | ||
<sbdh:Standard>GS1</sbdh:Standard> | ||
<sbdh:TypeVersion>V1.3</sbdh:TypeVersion> <!-- Document version--> | ||
<sbdh:InstanceIdentifier>100002</sbdh:InstanceIdentifier> <!-- UNIQUE IDENTIFIER OF DOCUMENT - PRIMARY KEY IN ERP --> | ||
<sbdh:Type>Shipment</sbdh:Type> <!-- DEFINED IN SCHEMA Example; order, invoice, debitCreditAdvice --> | ||
<sbdh:CreationDateAndTime>2018-01-02T11:32:52Z</sbdh:CreationDateAndTime> <!-- Optional --> | ||
</sbdh:DocumentIdentification> | ||
<sbdh:BusinessScope> <!-- Optional --> | ||
<sbdh:Scope> | ||
<sbdh:Type>BusinessProcess</sbdh:Type> | ||
<sbdh:InstanceIdentifier>Receipt/version2-251</sbdh:InstanceIdentifier> | ||
<sbdh:Identifier>EDI-Receipt</sbdh:Identifier> | ||
</sbdh:Scope> | ||
</sbdh:BusinessScope> | ||
</sbdh:StandardBusinessDocumentHeader> | ||
<extension> | ||
<EPCISMasterData> | ||
<VocabularyList> | ||
<Vocabulary type="urn:ot:object:actor"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:ot:object:actor:id:Company_Green"> | ||
<attribute id="urn:ot:object:actor:name">Green</attribute> | ||
<attribute id="urn:ot:object:actor:category">Company producer</attribute> | ||
<attribute id="urn:ot:object:actor:wallet">0xBbAaAd7BD40602B78C0649032D2532dEFa23A4C0</attribute> | ||
</VocabularyElement> | ||
<VocabularyElement id="urn:ot:object:actor:id:Company_Pink"> | ||
<attribute id="urn:ot:object:actor:name">Pink</attribute> | ||
<attribute id="urn:ot:object:actor:category">Company</attribute> | ||
<attribute id="urn:ot:object:actor:wallet">0xFfDDAd7BD40602B78C0649032D2532dEFa23A4C0</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:location"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:epc:id:sgln:Building_Green"> | ||
<attribute id="urn:ot:object:location:category">Building</attribute> | ||
<attribute id="urn:ot:object:location:description">Producer Warehouses</attribute> | ||
<extension> | ||
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Green</attribute> | ||
</extension> | ||
</VocabularyElement> | ||
<VocabularyElement id="urn:epc:id:sgln:Building_Pink"> | ||
<attribute id="urn:ot:object:location:category">Building</attribute> | ||
<attribute id="urn:ot:object:location:description">Pink distributor warehouse</attribute> | ||
<children> | ||
<id>urn:epc:id:sgln:Building_Pink_V3</id> | ||
<id>urn:epc:id:sgln:Building_Pink_V4</id> | ||
</children> | ||
<extension> | ||
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:Company_Pink</attribute> | ||
</extension> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:product"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:ot:object:product:id:Product_1"> | ||
<attribute id="urn:ot:object:product:category">Beverage</attribute> | ||
<attribute id="urn:ot:object:product:description">Wine Pallet</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
|
||
<Vocabulary type="urn:ot:object:batch"> | ||
<VocabularyElementList> | ||
<VocabularyElement id="urn:epc:id:sgtin:Batch_1"> | ||
<attribute id="urn:ot:object:product:batch:productId">urn:ot:object:product:id:Product_1</attribute> | ||
<attribute id="urn:ot:object:product:batch:productionDate">2017-31-12T00:01:54Z</attribute> | ||
<attribute id="urn:ot:object:product:batch:expirationDate">2020-31-12T00:01:54Z</attribute> | ||
</VocabularyElement> | ||
</VocabularyElementList> | ||
</Vocabulary> | ||
</VocabularyList> | ||
</EPCISMasterData> | ||
</extension> | ||
</EPCISHeader> | ||
<EPCISBody> | ||
<EventList> | ||
<ObjectEvent> | ||
<!-- Transport Shipment--> | ||
<eventTime>2018-01-02T11:00:00.000-04:00</eventTime> <!-- Mandatory--> | ||
<eventTimeZoneOffset>-04:00</eventTimeZoneOffset> <!-- Mandatory--> | ||
<epcList> | ||
<epc>urn:epc:id:sgtin:Batch_1</epc> | ||
</epcList> | ||
<action>OBSERVE</action> <!-- Mandatory--> | ||
<bizStep>urn:epcglobal:cbv:bizstep:receiving</bizStep> <!-- Optional --> | ||
<disposition>urn:epcglobal:cbv:disp:active</disposition> <!-- Optional --> | ||
<readPoint> <!-- Optional --> | ||
<id>urn:epc:id:sgln:Building_Pink_V3</id> | ||
</readPoint> | ||
<bizLocation> <!-- Optional --> | ||
<id>urn:epc:id:sgln:Building_Pink</id> | ||
</bizLocation> | ||
<extension> | ||
<quantityList> <!-- Optional --> | ||
<quantityElement> | ||
<epcClass>urn:epc:id:sgtin:Batch_1</epcClass> | ||
<quantity>10</quantity> | ||
<uom>KG</uom> | ||
</quantityElement> | ||
</quantityList> | ||
<extension> | ||
<documentId>1</documentId> | ||
<OTEventClass>urn:ot:events:Transport</OTEventClass> | ||
<OTEventClass>urn:ot:events:Ownership</OTEventClass> | ||
<OTEventType>Sales</OTEventType> | ||
<sourceList> | ||
<source type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Green</source> | ||
</sourceList> | ||
<destinationList> | ||
<destination type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:Building_Pink</destination> | ||
</destinationList> | ||
</extension> | ||
</extension> | ||
</ObjectEvent> | ||
</EventList> | ||
</EPCISBody> | ||
</epcis:EPCISDocument> |
Oops, something went wrong.