Biztalk中使用Edi,如何自定义文件处理规则以及如何将edi数据存储到SQL Server中
据我所知,Biztalk可以从贸易伙伴接收EDI,查找模式,验证edi,生成ack,处理EDI,将edi转换为XML。这些是我从MSDN了解到的。目前我们没有实现biztalk,我们正在做的是从贸易伙伴接收产品信息(电子表格/csv文件),使用我们构建的处理器处理接收到的文件,存储所有产品信息在 SQL Server 中。
我有三个问题:
我们收到的EDI包含产品信息,当biztalk处理edi时,我们如何以及在哪里应用我们的业务规则/需求?例如,我们可以根据 edi 文件中包含的促销信息来计算我们的销售价格。另一个例子是我们可以修改产品描述...等等之类的事情。
如何在SQL Server中存储edi数据?那是 SQL 适配器吗? WCF-SQL?所有产品信息都将存储在一张表中,这里我们需要执行哪些关键步骤?
biztalk将edi转换为xml后,biztalk可以用转换后的xml做什么呢? Biztalk 可以处理 xml 并将所有数据映射到我们的 SQL DB 架构中吗?
提前致谢
As far as I know, Biztalk can receive EDI from trading partner, look up schema, validate the edi, generate ack, PROCESS EDI , convert edi to XML. These are what I have learnd from MSDN.Currently we don't implment biztalk and what we are doing is receive product information (spreadsheet/csv file) from trading partner, process the received file by using a processor we build, store all product information in SQL Server.
I have three questions:
Our received EDI contains products information, when biztalk processes edi, how and where can we apply our business rules/needs? E.g. we can calculate our selling price based on the promotion information contained in the edi file. Another example is we can modify the product description...etc, those sort of thing.
How to store edi data in SQL Server? Is that SQL Adapter? WCF-SQL? All product informaiton will be stored in one table and what are the key steps we need to do here?
After biztalk convert edi to xml, then what can biztalk do with the converted xml? Can Biztalk process the xml and map all data into our SQL DB schema?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在逃亡,所以我会快速尝试一下这些。首先我要说的是,BizTalk 是一个非常强大的引擎,具有无限的可能性和多种完成任务的方法。
这取决于您所涉及的逻辑。如果你有多个合作伙伴,你可以做一些预处理。或者,如果您的逻辑依赖于数据,您可以选择在地图中执行此操作。它还可以通过使用自定义管道在后处理中完成。
有几种可能性。您可以直接从映射执行此操作,使用 WCF、SOAP 等发送 XML,或者直接将特定映射执行到 SQL。
BizTalk 本身就使用 XML,这意味着每个文档都转换为 XML,并且所有操作都在 XML 中完成。是的,理论上您可以创建数据库的 xml 模式并使用映射来执行此操作,或者您可以直接从映射中进行 CRUD。
I am on the run so i'll take a quick stab at these. Let me preface my answers by saying BizTalk is a very powerful engine, with endless possibilities and many ways to accomplish tasks.
This is dependent on what your logic involved. If you have multiple partners, you may do some pre-processing. Or you may choose to do it in the map if your logic is data dependent. It can also be done in post-processing by using custom pipelines.
There are a couple of possibilities for this. You can do this directly from the map, use WCF, SOAP, etc to send the XML, or do a specific map directly to SQL.
BizTalk works with XML natively, meaning every document is turned into an XML and all manipulation is done in XML. Yes, you could in theory create an xml schema of your DB and use a map to do so, or you could just CRUD directly from within a map.