Skip to content

Instantly share code, notes, and snippets.

@MikeLuDev
Created June 3, 2019 21:56
Show Gist options
  • Save MikeLuDev/96fe71fc494041ec9f43673d3ad1b917 to your computer and use it in GitHub Desktop.
Save MikeLuDev/96fe71fc494041ec9f43673d3ad1b917 to your computer and use it in GitHub Desktop.
Example .xml file for a bio-tagging operation with required data fields empty. For use with an Eden endpoint.
<?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>
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:${TAGGING_COMPANY_ID}</sbdh:Identifier>
<sbdh:ContactInformation>
<sbdh:Contact>${TAGGING_COMPANY_CONTACT}</sbdh:Contact>
<sbdh:EmailAddress>${TAGGING_COMPANY_EMAIL}</sbdh:EmailAddress>
</sbdh:ContactInformation>
</sbdh:Sender>
<sbdh:Receiver>
<sbdh:Identifier Authority="OriginTrail">urn:ot:object:actor:id:${TAGGING_COMPANY_ID}</sbdh:Identifier>
<sbdh:ContactInformation>
<sbdh:Contact>${TAGGING_COMPANY_CONTACT}</sbdh:Contact>
<sbdh:EmailAddress>${TAGGING_COMPANY_EMAIL}</sbdh:EmailAddress>
</sbdh:ContactInformation>
</sbdh:Receiver>
<sbdh:DocumentIdentification>
<sbdh:Standard>GS1</sbdh:Standard>
<sbdh:TypeVersion>V1.3</sbdh:TypeVersion>
<sbdh:InstanceIdentifier>${UNIQUE_ID_FROM_ERP}</sbdh:InstanceIdentifier>
<sbdh:Type>Tagging</sbdh:Type>
<sbdh:CreationDateAndTime>${CREATION_DATE_TIME}</sbdh:CreationDateAndTime>
</sbdh:DocumentIdentification>
</sbdh:StandardBusinessDocumentHeader>
<extension>
<EPCISMasterData>
<VocabularyList>
<Vocabulary type="urn:ot:object:actor">
<VocabularyElementList>
<VocabularyElement id="urn:ot:object:actor:id:${TAGGING_COMPANY_ID}">
<attribute id="urn:ot:object:actor:name">${TAGGING_COMPANY_NAME}</attribute>
<attribute id="urn:ot:object:actor:category">Company</attribute>
<attribute id="urn:ot:object:actor:wallet">0x22Ae86800ebE1C105d4312f57D28Cf12B729cE37</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:location">
<VocabularyElementList>
<VocabularyElement id="urn:epc:id:sgln:${TAGGING_LOCATION_ID}">
<attribute id="urn:ot:object:location:category">Building</attribute>
<attribute id="urn:ot:object:location:description">${TAGGING_LOCATION_DESCRIPTION}</attribute>
<attribute id="urn:ot:object:location:actorId">urn:ot:object:actor:id:${TAGGING_COMPANY_ID}</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:product">
<VocabularyElementList>
<VocabularyElement id="urn:ot:object:product:id:${DNA_ID}">
<attribute id="urn:ot:object:product:category">${PRODUCT_GPC_CATEGORY}</attribute>
<attribute id="urn:ot:object:product:description">${PRODUCT_DESCRIPTION}</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
<Vocabulary type="urn:ot:object:batch">
<VocabularyElementList>
<VocabularyElement id="urn:epc:id:sgtin:${DNA_ID}">
<attribute id="urn:ot:object:product:batch:productId">urn:ot:object:product:id:${DNA_ID}</attribute>
<attribute id="urn:ot:object:product:batch:productionDate">${PRODUCTION_DATE}</attribute>
<attribute id="urn:ot:object:product:batch:expirationDate">${EXPIRATION_DATE}</attribute>
</VocabularyElement>
</VocabularyElementList>
</Vocabulary>
</VocabularyList>
</EPCISMasterData>
</extension>
</EPCISHeader>
<EPCISBody>
<EventList>
<ObjectEvent>
<eventTime>${EVENT_TIME}</eventTime>
<eventTimeZoneOffset>${EVENT_TIME_ZONE_OFFSET}</eventTimeZoneOffset>
<epcList>
<epc>urn:epc:id:sgtin:${DNA_ID}</epc>
</epcList>
<action>ADD</action>
<bizStep>urn:epcglobal:cbv:bizstep:commissioning</bizStep>
<disposition>urn:epcglobal:cbv:disp:active</disposition>
<readPoint>
<id>urn:epc:id:sgln:${TAGGING_LOCATION_ID}</id>
</readPoint>
<bizLocation>
<id>urn:epc:id:sgln:${TAGGING_LOCATION_ID}</id>
</bizLocation>
<extension>
<extension>
<documentId>${PROJECT_ID}</documentId>
<OTEventClass>urn:ot:event:transformation</OTEventClass>
<OTEventType>Tagging</OTEventType>
<sourceList>
<source type="urn:epcglobal:cbv:sdt:owning_party">urn:epc:id:sgln:${TAGGING_LOCATION_ID}</source>
</sourceList>
</extension>
</extension>
</ObjectEvent>
</EventList>
</EPCISBody>
</epcis:EPCISDocument>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment