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!

Was it helpful?

Solution 3

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top