为什么需要输入消息架构来将平面文件转换为 BizTalk 服务器中的 XML?
我有一个来自一个应用程序的平面文件,我必须将其发送到 BizTalk 服务器。在这种情况下,我的 BizTalk 服务器中的哪个组件将我的平面文件转换为 XML。
我还听说我必须创建一个输入模式(.xsd 文件),为什么我需要一个输入消息模式?
I have a flat file from one application, which I have to send to a BizTalk server. In that case which component in my BizTalk server converts my flat file to XML.
Also I heard that I have to create an input schema (.xsd file), why do I need an input message schema?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
BizTalk 中执行转换的组件称为“平面文件反汇编器”。它是一个位于接收位置中选择的传入管道中的组件,用于侦听传入消息。
您需要创建一个特殊的 XSD 架构来驱动转换过程。此架构称为平面文件架构。事实上,它是一个有效的 XSD 模式,其中包含反汇编器在运行时使用的附加专有注释,以便执行转换。这些注释包括在数据类型、长度、偏移量等方面描述原始平面文件结构。
但是,没有可以用于此目的的内置管道;您需要创建一个自定义接收管道,并将平面文件反汇编器组件放入反汇编器阶段。然后,您可以配置反汇编程序以使用自定义的平面文件架构。
希望这有帮助。
The component in BizTalk that performs the conversion is known as the Flat File Disassembler. It is a component that lives in the incoming pipeline selected in the Receive Location that listens to your incoming message.
You need to create a special XSD schema to drive the conversion process. This schema is known as a Flat File Schema. In fact, it is a valid XSD schema that contains additional proprietary annotations used at runtime by the Disassembler in order to perform the conversion. Those annotations consist in describing the original flat file structure in terms of data types, length, offets, etc.
There is no builtin pipeline that you can use for this purpose however ; you need to create a custom receive pipeline, and drop the Flat File Disassembler component in the Disassembler stage. Then you can configure the dissassembler to use your custom Flat File Schema.
Hope this helps.
如果您想要读取和操作平面文件的内容,则必须将其转换为 XML,这是 BizTalk 中所有消息的基础。
这允许您
但是,如果您只想将平面文件从一个位置移动到另一个位置,则可以仅使用直通管道,在这种情况下,您不需要需要将其转换为 XML 或需要 XSD。
If you are wanting to read and manipulate the contents of the flat file you have to convert it to XML which is the basis of all messages in BizTalk.
This allows you to
However if all you are wanting to do is to move the flat file from one location to another, you can just use the passthru pipelines, in which case you don't need to convert it to XML or need a XSD.