|
Home > Archive > BizTalk Server General > July 2004 > Preserve Header property - FlatFile Disassembler
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Preserve Header property - FlatFile Disassembler
|
|
| danderio 2004-07-29, 3:44 pm |
| Hi,
Has anyone have any experience using the preserve header property on the Flat File disassembler ?
Im specifying the header schema along with the body schema, but the header simply gets ignored by the disassembler. I do get the body according to the schema, but no header.
My flat file looks like this:
H12345
Dpos1pos2pos3pos4pos5
Dpos1pos2pos3pos4pos5
Dpos1pos2pos3pos4pos5
Dpos1pos2pos3pos4pos5
One header record marked by the "H" with some values
Multiple detail records marked bythe "D"
The file is positional (i.e. field1 = pos1, field2 = pos2, etc.)
My goal is to pass the header intact to to resulting xml file.
Thanks in advance for your help! | |
| Matt Milner 2004-07-30, 5:49 pm |
| From the docs:
"Set this property to True if you need to store the flat file message header
on the message context. Preserving the header of the flat file message
enables the header structure and content to flow with the message through
BizTalk Server. The header can then be used when serializing the message
back to flat file format in the Flat File Assembler pipeline component. "
you only get the header back when you reassemble the flat file in a send
pipeline. You could get at the header from your orchestration by looking
for that message context property (probably easiest to find this by using
the orchestration debugger in HAT).
One other option, if you need to get at a particular value in the header,
you can promote that value in the header schema. then open your header
schema and select the item you promoted. Make sure, in the properties, that
it is a message context property, not a message data property. This will
make it available to you in the orchestration even though the header is not
part of the message data.
matt
"danderio" <danderio.1a6g8z@mail.webservertalk.com> wrote in message
news:danderio.1a6g8z@mail.webservertalk.com...
>
> Hi,
>
> Has anyone have any experience using the preserve header property on
> the Flat File disassembler ?
>
> Im specifying the header schema along with the body schema, but the
> header simply gets ignored by the disassembler. I do get the body
> according to the schema, but no header.
>
> My flat file looks like this:
>
> H12345
> Dpos1pos2pos3pos4pos5
> Dpos1pos2pos3pos4pos5
> Dpos1pos2pos3pos4pos5
> Dpos1pos2pos3pos4pos5
>
> One header record marked by the "H" with some values
> Multiple detail records marked bythe "D"
> The file is positional (i.e. field1 = pos1, field2 = pos2, etc.)
>
> My goal is to pass the header intact to to resulting xml file.
>
> Thanks in advance for your help!
>
>
>
> --
> danderio
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message328993.html
>
|
|
|
|
|