开发者

How to Generate Edifact message from a xml? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations开发者_JS百科.

Closed 4 years ago.

Improve this question

I'm currently dealing with customs messages Beans in Java. After filling in the Beans with different values, I want to produce an EDIFACT CUSDEC message corresponding to each message.

For each attribute of a message Bean, I have the information to put the attribute in the right place in EDIFACT CUSEDC format.

Thus, I am looking for a free tool (a Java API) which could ideally convert my full-filled Bean into an EDIFACT CUSDEC message.

I found a commercial solution (not free) there :

http://www.datadirect.com/products/edifact-grid/index.ssp

And a quick tutorial here :

http://biemond.blogspot.com/2008/09/generate-edifact-message-from-xml.html

But ... unfortunately it is not free..

Thanks in advance for your help!


You might want to have a closer look at Smooks Website

It offers various mappings, e.g.:

Java -> EDI
EDI -> Java
XML -> Java
Java -> XML
...

For the different UN/EDIFACT directories it offers mapping functionality out of the box. I suggest that you examine the examples and the documentation on the Smooks website.


try http://bots.sourceforge.net it already has a mapping engine.


Just to note that the only solution I found is to implement my own mapping engine.

This is made by having :

  • an xml representation of an edifact message
  • an XPath mapping path attached to each of the bean attributes and mapping them to the xml representation of EDIFACT
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜