Create EDI to XML mapping
- Start Altova MapForce and insert the EDI message type ORDERS from EDIFACT.Nanonull (no sample file needed).
- On the menu, click and select the newly created ORDERS.xsd file.
- When prompted to provide a sample file, click Skip.
- Select Envelope as the root element.
-
In the Altova MapForce design window, use mouse to draw a connection line from Envelope on the left side to Envelope
on the right side. MapForce connects matching child nodes automatically.
- On the menu, click .
- As a target directory, select D:\EDI\CustomSchemas\EDIFACT.Nanonull\ORDERS.
-
Click
OK to create the source code.
The Messages area shows when the source code is created.
- Close MapForce. No need to save anything.
- Open an administrator command prompt in the folder D:\EDI\CustomSchemas\EDIFACT.Nanonull\ORDERS.
-
Run the batch job compile.bat with the folder name as a parameter:
compile.bat D:\EDI\CustomSchemas\EDIFACT.Nanonull\ORDERS
Visual Studio is not necessary for the task, the batch job uses tools included in .NET Framework.
Source code files are deleted and replaced with an executable, mapping.exe.
You now have all files needed for importing the ORDERS folder into KC Plug-In as a new EDI type.