EDI Template to XSD

EDI Template XSD

When XSDs are required for any of the EDI templates, for example, if you are applying XSL transformations, XSDs can be generated from compiled assemblies containing the desired EDI templates. Use Microsoft's XSD.exe to generate the XSDs.

For example, if you need an XSD for purchase order 850, version 4010, do the following:

1. Create a project named EdiFabric.Examples.X12.Templates.V4010 and add the purchase order EDI Template to it (tutorial here). Build it to generate EdiFabric.Examples.X12.Templates.V4010.dll

2. Start Developer Command Prompt and type in:

xsd.exe EdiFabric.Examples.X12.Templates.V4010.dll /type:EdiFabric.Templates.X12004010.TS850

 

 

 


 

 

 

EDI Control Segments XSD

To generate XSDs for the control or acknowledgment segments use the EdiFabric.Core.dll assembly.

X12

 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.X12.ISA
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.X12.IEA
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.X12.GS
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.X12.GE
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.X12.TA1

EDIFACT

 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.Edifact.UNB
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.Edifact.UNG
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.Edifact.UNE
 xsd.exe EdiFabric.Core.dll /type:EdiFabric.Core.Model.Edi.Edifact.UNZ
Was this article helpful?
1 out of 2 found this helpful