简体   繁体   English

基于 XSD 模式将 X12 转换为 XML 的工具

[英]Tools for converting X12 to XML based on an XSD schema

I am looking for a tool or software library (preferably.Net) for converting edi documents to xml using an xsd schema, as Biztalk does.我正在寻找一个工具或软件库(最好是.Net),用于使用 xsd 模式将 edi 文档转换为 xml,就像 Biztalk 所做的那样。

In Biztalk you can define which schema file to use in a pipeline, and the generated xml will be based on and validated with that schema.在 Biztalk 中,您可以定义在管道中使用哪个架构文件,生成的 xml 将基于该架构并使用该架构进行验证。

There are many libraries out there that do the conversion (as per this question: Best way to convert XML to X12 and X12 to XML ), but I can't see any where you can set the schema that the conversion is based on.有很多库可以进行转换(根据这个问题: Best way to convert XML to X12 and X12 to XML ),但我看不到任何可以设置转换所基于的架构的地方。 Any ideas?有任何想法吗?

You can try [EdiNation] , it's an EDI API and you can format your documents using OpenAPI 3. Check out the custom models section.您可以尝试[EdiNation] ,它是 EDI API,您可以使用 OpenAPI 3 格式化您的文档。查看自定义模型部分。 They can even convert your custom BizTalk XSDs to the OpenAPI format.他们甚至可以将您的自定义 BizTalk XSD 转换为 OpenAPI 格式。

I just found this forum post:我刚找到这个论坛帖子:

https://social.msdn.microsoft.com/Forums/azure/en-US/f52bf64c-e42b-412c-9aa4-f05d06081586/using-standard-x12-schemas-vs-biztalk-x12-schemas?forum=azurelogicapps https://social.msdn.microsoft.com/Forums/azure/en-US/f52bf64c-e42b-412c-9aa4-f05d06081586/using-standard-x12-schemas-vs-biztalk-x12-schemas?forum=azurelogicapps

It looks like in the absence of any standard X12 XML schemas at the time, Microsoft produced there own and used these within Biztalk for XML validation and conversion.看起来在当时没有任何标准 X12 XML 模式的情况下,微软在 Biztalk 中生产并使用了这些模式,用于 XML 验证和转换。

So it looks unlikely that there will be anything outside of Biztalk that will be able to use XSD files to convert X12 to XML.所以看起来不太可能在 Biztalk 之外有任何东西能够使用 XSD 文件将 X12 转换为 XML。

There is an official EDI pack for BizTalk - it is highly recommended you use that "accelerator" vs growing your own. BizTalk 有一个官方的 EDI 包 - 强烈建议您使用“加速器”而不是自己发展。
What version are you on?你在哪个版本?

Should be found somewhere here in BizTalk program files: \BizTalk Server\MSI\Program Files\XSD_Schema\EDI\MicrosoftEdiXSDTemplates.exe应该在 BizTalk 程序文件的某处找到:\BizTalk Server\MSI\Program Files\XSD_Schema\EDI\MicrosoftEdiXSDTemplates.exe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM