|
Home > Archive > BizTalk Server > April 2006 > Advice Needed - Please Help
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 |
Advice Needed - Please Help
|
|
|
| I need to take a file after it has been transformed and processed by a
BizTalk orchestration and right before it is delivered to its current
destination open it up, read thru it line by line and change some of the
data in it.
Can anyone advise on the best way to do this and possibly provide sample
code, articles, or links that might help someone with limited BizTalk
experience such as me? Thanks.
| |
| Tomas Restrepo \(MVP\) 2006-04-27, 7:25 am |
| Mike,
>I need to take a file after it has been transformed and processed by a
>BizTalk orchestration and right before it is delivered to its current
>destination open it up, read thru it line by line and change some of the
>data in it.
You could certainly do this using a custom pipeline component in your send
pipeline (possibly in the encode stage), but I would like to ask: What
exactly are you trying to accomplish, and why?
Wouldn't it be better to just to this inside the orchestration before
sending the message?
--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
| |
|
| I guess so yes based on what you are saying. I have such limited BizTalk
experience that I am not sure how to proceed.
Basically I need to open up a text file on disk and get some information to
be inserted into the message that is currently being sent to the send
pipline (after it has been transformed from the message format that was
originally received). I guess I need a clue on where to begin or what to
research. Thanks.
"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:OpbekrXaGHA.1240@TK2MSFTNGP03.phx.gbl...
> Mike,
>
>
> You could certainly do this using a custom pipeline component in your send
> pipeline (possibly in the encode stage), but I would like to ask: What
> exactly are you trying to accomplish, and why?
>
> Wouldn't it be better to just to this inside the orchestration before
> sending the message?
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
| |
| Tomas Restrepo \(MVP\) 2006-04-27, 7:25 am |
| Mike,
>I guess so yes based on what you are saying. I have such limited BizTalk
>experience that I am not sure how to proceed.
>
> Basically I need to open up a text file on disk and get some information
> to be inserted into the message that is currently being sent to the send
> pipline (after it has been transformed from the message format that was
> originally received). I guess I need a clue on where to begin or what to
> research. Thanks.
An easy way to accomplish this would be, in your orchestration, to do the
following:
1- You transform your document into a new message using a Transform shape
with a map.
2- After the transformation, inside an Assign Message shape, you call a .NET
component that takes your transformed message as input and returns a new
message that has been modified according to your needs, and then you assign
that to your message (or a new message, for that matter).
3- You send the new message to the send port, Since you have alreary applied
your logic, there's no need to do anything else.
Number 2 can easily be done if you create a .NET component that takes an
XmlDocument as an argument and returns one as the return value (though there
are other, more performant options depending on how you'll be modifying the
message.
I think you could possibly replace 2 with a call to the Business Rule Engine
in biztalk, as well, but that might be more complex, and if you already know
how to write the .NET code to do what you want, then it will surely take
more time.
--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/
| |
|
| Do you know of a decent sample or article on this approach since I am a
newbie to BizTalk?
"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:%23RDE79YaGHA.4788@TK2MSFTNGP02.phx.gbl...
> Mike,
>
>
> An easy way to accomplish this would be, in your orchestration, to do the
> following:
>
> 1- You transform your document into a new message using a Transform shape
> with a map.
> 2- After the transformation, inside an Assign Message shape, you call a
> .NET component that takes your transformed message as input and returns a
> new message that has been modified according to your needs, and then you
> assign that to your message (or a new message, for that matter).
> 3- You send the new message to the send port, Since you have alreary
> applied your logic, there's no need to do anything else.
>
> Number 2 can easily be done if you create a .NET component that takes an
> XmlDocument as an argument and returns one as the return value (though
> there are other, more performant options depending on how you'll be
> modifying the message.
>
> I think you could possibly replace 2 with a call to the Business Rule
> Engine in biztalk, as well, but that might be more complex, and if you
> already know how to write the .NET code to do what you want, then it will
> surely take more time.
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>
| |
|
|
|
|
|