Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Generate then send a file
- This topic has 4 replies, 1 voice, and was last updated 6 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
June 14, 2006 at 3:20 PM #14838
I haven’t done a lot of work with flat files (and most of what I have done is in reading flat files, not writing them), but I think this is all you need to do:
1) Create a flat file schema
2) Create a map and map from xml schema to flat file schema
3) Create a \”Send Pipeline\”. Drag the \”Flat File\” assembler shape in the toolbox to the \”Assemble\” phase of the pipeline. Probably specify the property \”Document Schema\”.-
June 14, 2006 at 2:27 PM #14839
Hi,
I can’t believe I can’t easily do that ! I just want to generate a file with my [i:39a86bab0b]XML [/i:39a86bab0b]msg. The aim of this solution is to generate 2 files :
[list:39a86bab0b]-The first one is a flat file. It is constructed from the incoming message. That one is ok
– The other one must be a [b:39a86bab0b]new generated text file[/b:39a86bab0b] during the orchestration.[/list:u:39a86bab0b]
But the result is like this :
[code:1:39a86bab0b]<?xml version=\"1.0\"?>
<string>… GL07 process …</string>[/code:1:39a86bab0b]
However, I would like a file with that inside :
[code:1:39a86bab0b]… GL07 process …[/code:1:39a86bab0b]
So, do I need to code a custom [i:39a86bab0b]pipeline[/i:39a86bab0b] just like in the BT2K6 samples ? Or create a schema, a map then used the flat file pipeline ?Any help is welcome…
Thanks !
-
June 14, 2006 at 3:42 PM #14840
Sorry… it’s done, but I don’t think by the best way:
[list:f92141b2e7]1. Actually, I’ve created a schema with only one attribute field.
2. Then I’ve created a map between the incoming message and the previous schema.
3. Then I use a transform shape.
4. Finally, in a new send pipeline, I have linked the schema with a flat file assembler shape.[/list:u:f92141b2e7]
It may be possible to do this more easily… [size=9:f92141b2e7]but it doesn’t matter ’cause it works ![/size:f92141b2e7]-
June 14, 2006 at 3:50 PM #14841
[quote:b9b79bf426=\”nwalters\”]I haven’t done a lot of work with flat files (and most of what I have done is in reading flat files, not writing them), but I think this is all you need to do:
1) Create a flat file schema
2) Create a map and map from xml schema to flat file schema
3) Create a \”Send Pipeline\”. Drag the \”Flat File\” assembler shape in the toolbox to the \”Assemble\” phase of the pipeline. Probably specify the property \”Document Schema\”.[/quote:b9b79bf426]Actually I wasn’t far from the truth…
So, thank you one more time Neal !
-
-
-
-
June 14, 2006 at 7:35 PM #14837
There is an easy way if you just want to send a simple string.
Use the RawString Formatter
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdk/htm/ebiz_prog_email_ibad.asp[/url]You can then just create a message of type RawString and send it to a file
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.