Handling EDI files of different versions.

Hi There,

        I have two clients. One client sends me an 810 EDI file of version 4010 and another sends 810 EDI file of version 5010. do we need to build two different flow services to handle them? or can we use one flow service with same small modifications? 

        Where will be the exact difference with respective to different versions of same type (810)?

Thank you in advance,


well certainly you can write a common service with different handling depending upon the differences in Segments in EDI content, for differences b/w two versions of 810 please check with EDI specification (search on net).
You can create a single processing rule for both document, and a common wrapper service, where you can differentiate your functionality depending upon the document type (transaction set level).