« Return to Thread: Edi Conversion Tool

SV: Edi Conversion Tool

by Bård Langöy :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Maurice,

 

Thanks ! J  I hope people will find it useful.  

 

Regards,

Bård

 

Från: Maurice Zeijen [mailto:smies.com@...]
Skickat: den 8 november 2009 18:08
Till: dev@...
Ämne: Re: [milyn-dev] Edi Conversion Tool

 

Great work bard. I think that this is one of greatets new parts of Smooks :).

M.

On Sun, Nov 8, 2009 at 9:36 AM, Bård Langöy <bardl@...> wrote:

Hi,

 

I have finally checked in the first parts of the Edi Convert Tool. The code does not exist in the trunk yet, but can be downloaded at: https://svn.codehaus.org/milyn/workspaces/bardl/bardl_edipop/ECT

 

The conversion tool converts the zipped un/edifact specifications located at http://www.unece.org/trade/untdid/down_index.htm into Smooks configuration files (mapping-files) . I have created a test-case that demonstrates the whole procedure: ConfigReaderTest. test_Converting_UnEdifact_D08A().

 

But in general the conversion-tool takes the following arguments:

·         InFile – the zip-file containing the un/edifact specs.

·         outDir – the directory to put the generated configuration-files.

·         message – The name of the message to parse. In the testcase example I am generating the INVOIC message. It is also possible to generate all messages by writing ALL.

 

Today the conversion tool  only handles zip-files. An improvement would be to check whether it is a zip-file or an unzipped directory.

 

Also, when writing the testcases I found that the segments UNH and UNT are not located in the zip-file containing the specification :(. I have handwritten a config-file (un-edifact-interchange-definition.xml) that will be used for now. But in the future it would be nice if we could find the location/url of the interchange envelope specification.  

 

Regards,

Bård

 

 

 « Return to Thread: Edi Conversion Tool