从BizTalk中的平面文件中删除标题 [英] Removing header from a flat file in BizTalk

查看:57
本文介绍了从BizTalk中的平面文件中删除标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从BizTalk中的平面文件中删除标题行的最简单方法是什么?我通过为标题行创建一个单独的架构(为主体创建一个单独的架构),然后在配置管道"对话框中将HeaderSpecName属性设置为刚创建的标题架构,然后将PreserveHeader属性设置为false,来实现此目的.但是,我的问题是,使用此解决方案,我需要创建一个除了需要存在的内容之外不执行其他任何操作的架构,这样我就可以删除标题行.

What is the simplest way to remove the header row from a flat file in BizTalk? I have implemented this by creating a separate schema for the header row (and one for the body) and then set the HeaderSpecName property in the 'Configure Pipeline' dialog to the header schema I've just created and then the PreserveHeader property to false. My problem, however, is that with this solution I need to create a schema that does nothing other than it needs to exist so I can remove the header row.

推荐答案

我相信您所说的是推荐的方法来完成您要问的事情.我只需要在我正在研究的项目上执行此操作,然后选择具有额外的架构即可.

I believe what you stated is the recommended way to do what you are asking. I just had to do this on a project i am working on and chose to have the extra schema.

另一种选择是编写自己的

Another option would be to write your own custom pipeline component for the Disassemble stage that executes before the flat file dissassembler. The Decode stage would work too, but it seems that the disassemble stage is made for this type of work.

第二个选项将使删除标题行更加通用,并且可以在许多不同的架构中使用,因此您不必为每个平面文件架构创建单独的标题架构.

This second option would make the removing of the header row more generic and could be used across many different schemas so you wouldn't have to create a separate header schema for each flat file schema.

这篇关于从BizTalk中的平面文件中删除标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆