我想使用 Smooks 将以下订单 EDI 消息映射到 xml
UNB+UNOA:3+9313938000631:ZZ+9343015000575:ZZ+110210:0926+1++++1'UNH+1+ORDERS:D:01B:UN:EAN010'BGM+220+R-95300561X+9'DTM+137:20110210:102'DTM+2:20110211:102'NAD+BY+9313938000631::9'NAD+ST+9216GR::92'NAD+SU+963725::92'LIN+1++19300601396099:SRV'QTY+21:4'PRI+1E:5.412'UNS+S'MOA+86:21.648'CNT+2:1'UNT+14+1'UNZ+1+1'
-
(基于上述消息)段、字段、<的值应该是什么下面的smooks edimap配置中的strong>组件和子组件?
-
我在哪里可以获得所有 EDI 采购订单字段的描述(包含示例)?
谢谢。
I'd like to map the below ORDERS EDI message to xml using Smooks
UNB+UNOA:3+9313938000631:ZZ+9343015000575:ZZ+110210:0926+1++++1'UNH+1+ORDERS:D:01B:UN:EAN010'BGM+220+R-95300561X+9'DTM+137:20110210:102'DTM+2:20110211:102'NAD+BY+9313938000631::9'NAD+ST+9216GR::92'NAD+SU+963725::92'LIN+1++19300601396099:SRV'QTY+21:4'PRI+1E:5.412'UNS+S'MOA+86:21.648'CNT+2:1'UNT+14+1'UNZ+1+1'
-
What should be the values for the (based on above message) segment, field, component and sub-component in smooks edimap config below?
<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd">
<medi:description name="Purchase Order" version="1.0" />
<medi:delimiters segment="
" field="+" component="'" sub-component="~" />
</medi:edimap>
-
Where would I get a description of all the EDI Purchase Order fields with examples?
Thank you.
发布评论
评论(1)
回答我自己的问题是为了他人的利益。
找到此网站的 EDIFACT 教程对于初学者来说是一个非常好的资源。之后,我阅读了此处的订单规范,读得很好。具体来说是段表。此外,Smooks 在 GAE 上有一个网站 (http://edi-to-xml.appspot.com/),允许您解析 edi 消息并将其转换为 xml。
Answering my own question for the benefit of others.
<medi:delimiters escape="?" component=":" sub-component="~" field="+" segment="'" />
Found this website's EDIFACT tutorial a very good resource for beginners. After that I read the ORDERS spec here a good read. Specifically the segment table. Also, Smooks has a website available on GAE (http://edi-to-xml.appspot.com/) that allows your to parse and convert a edi message to xml.