For my bachelor´s degree I got the task to implement a B2B communication for an ERP system developed by the company I currently work for. Because it should also be able to communicate with other software I consider using EDI messages (EDIFACT) or maybe cXML. What is the best way to approach this task.
I had the idea to translate the EDIFACT message into xml defined by one xsd describing every EDIFACT message. Then I would write the xml into the database or to business objects using a selfwritten mapper. For writing EDIFACT messages I just use the same methods the other way round. I thought using XML transformation first would be easier for the mapping and gives the opportunity using the xml for other purposes like writing other edi formats. The other idea is to just use cXML and map it.
What is the best approach to this task?