B2MML File that Contains a Material
Instead of a JSON material master import document (MMID), you can send all the details of a work order, process order, or material in a B2MML file.
If you want to send a B2MML document, you must also provide an XSL file with the mapping details. The ERP Transformation service uses this XSL file to convert the B2MML document to a JSON file.
Note: When an XML file is processed, some of the special characters are omitted. To prevent this issue, use the escape strings as specified in the following table.
Special Character | Escape String |
---|---|
& | & |
< | < |
> | > |
“ | " |
‘ | ' |
B2MML File that Contains a Material
<?xml version="1.0"?>
<ProductInformation xmlns="http://www.wbf.org/xml/B2MML-V0401" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Extended="http://www.wbf.org/xml/B2MML-V0401-AllExtensions"><ID>Internal from MiddleWare</ID><Description>ITEM_MASTER</Description><Location><EquipmentID>C86</EquipmentID><EquipmentElementLevel>Site</EquipmentElementLevel></Location><PublishedDate>2016-04-06T12:43:56-04:00</PublishedDate><ProductDefinition><ID>105D6043P008</ID><Version>100</Version><Description>INDEX TUBE</Description><ProductSegment><ID>000</ID><Description>HEADER</Description><Parameter><ID>UNIT_OF_MEASURE</ID><Value><ValueString>EA</ValueString><DataType>string</DataType><UnitOfMeasure/></Value></Parameter><Parameter><ID>PRODUCT_CATEGORY</ID><Value><ValueString>Capacitor</ValueString><DataType>string</DataType><UnitOfMeasure/></Value></Parameter><Parameter><ID>SERIALIZED</ID><Value><ValueString>TRUE</ValueString><DataType>boolean</DataType><UnitOfMeasure/></Value></Parameter><Parameter><ID>REVISION_DATE</ID><Value><ValueString>2/20/2016 11:52:44 AM</ValueString><DataType>DateTime</DataType><UnitOfMeasure/></Value></Parameter><Parameter><ID>ITEM_CREATION_DATE</ID><Value><ValueString>2/19/2016 4:08:05 PM</ValueString><DataType>DateTime</DataType><UnitOfMeasure/></Value></Parameter><Parameter><ID>ITEM_DRAWING</ID><Value><ValueString>http://www/google.com/document1</ValueString><DataType>string</DataType><UnitOfMeasure/></Value><Description>Document 1</Description></Parameter><Parameter><ID>ITEM_DRAWING</ID><Value><ValueString>http://www/google.com/document2</ValueString><DataType>string</DataType><UnitOfMeasure/></Value><Description>Document 2</Description></Parameter><Parameter><ID>STORAGELOCATION</ID><Value><ValueString>STK</ValueString><DataType>string</DataType><UnitOfMeasure/></Value></Parameter><EquipmentSpecification><EquipmentId/><EquipmentSpecificationProperty><ID>ProductionLine</ID><Value><ValueString>Line1</ValueString></Value></EquipmentSpecificationProperty><EquipmentSpecificationProperty><ID>StorageZone</ID><Value><ValueString>StorageZone</ValueString></Value></EquipmentSpecificationProperty><EquipmentSpecificationProperty><ID>StorageUnit</ID><Value><ValueString>StorageUnit</ValueString></Value></EquipmentSpecificationProperty></EquipmentSpecification></ProductSegment></ProductDefinition></ProductInformation>