BizTalk Server Applications Integration - Changing flat file filename

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > May 2004 > Changing flat file filename





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 Changing flat file filename
Tanglesoft

2004-04-06, 9:42 am

Hi,

In my Biztalk 2004 system I receive XML files and convert
these to flat files using a map. I would like to name
the flat files using an attribute that is contained in
the original XML message.

In the previous version of Biztalk I used a custom AIC
component to change the file name after it had been
through the map. I am a little confused as to where it
is best to do this in BTS2004. If a create an
orchestration I could use the map to convert the document
then use a .NET component to write out the file and not
rely on send port. If I don't want to use an
orchestration I cannot see how I can rename the file
because the map exists on the send port.

Any help appreciated.


Christof

2004-04-06, 6:39 pm

What you can do is to extract the desired filename out of the message data
inside a custom pipeline component. That component may use that value to
set the "ReceivedFileName" context property. If you configure your send
port correctly, it will use that value and take into account your specified
value...

Regards!
Christof


"Tanglesoft" <anonymous@discussions.microsoft.com> wrote in message
news:160b601c41bd9$49dba0c0$a601280a@phx
.gbl...
> Hi,
>
> In my Biztalk 2004 system I receive XML files and convert
> these to flat files using a map. I would like to name
> the flat files using an attribute that is contained in
> the original XML message.
>
> In the previous version of Biztalk I used a custom AIC
> component to change the file name after it had been
> through the map. I am a little confused as to where it
> is best to do this in BTS2004. If a create an
> orchestration I could use the map to convert the document
> then use a .NET component to write out the file and not
> rely on send port. If I don't want to use an
> orchestration I cannot see how I can rename the file
> because the map exists on the send port.
>
> Any help appreciated.
>
>



Charly99

2004-04-21, 11:38 am

"Christof" <bts2004communityfeedback (at) hotmail (dot) com> wrote in message news:<ur5IFACHEHA.3832@TK2MSFTNGP10.phx.gbl>...
> What you can do is to extract the desired filename out of the message data
> inside a custom pipeline component. That component may use that value to
> set the "ReceivedFileName" context property. If you configure your send
> port correctly, it will use that value and take into account your specified
> value...
>
> Regards!
> Christof


I'd like to know more about this. Could you be more specific ?
How can I set the "ReceivedFileName" context property in a custom pipeline ?

Any help appreciated.
Christof

2004-04-21, 5:37 pm

The sample in the SDK may interest you. It shows how BizTalk Server offers
the possibility to work with messages and streaming data inside a pipeline
component. The message object contains a method that allows to get and set
context.

Hope this helps,
Christof


"Charly99" <jccharly@altern.org> wrote in message
news:f4791bf2.0404210704.2b162057@posting.google.com...
> "Christof" <bts2004communityfeedback (at) hotmail (dot) com> wrote in

message news:<ur5IFACHEHA.3832@TK2MSFTNGP10.phx.gbl>...
data[vbcol=seagreen]
to[vbcol=seagreen]
specified[vbcol=seagreen]
>
> I'd like to know more about this. Could you be more specific ?
> How can I set the "ReceivedFileName" context property in a custom pipeline

?
>
> Any help appreciated.



Cecilie

2004-04-27, 3:35 pm

What SDK sample?

I also want to change the flat file filename in my custom pipeline, but I don't understand how to do it
How do I get/set the ReceivedFileName context property in a custom pipeline?

Regards,
Cecilie
Christof

2004-04-27, 3:35 pm

Please take a look at the sample I wrote you earlier today.

Kind regards,
Christof


"Cecilie" <anonymous@discussions.microsoft.com> wrote in message
news:9F86B7A2-A32D-4F2F-BAF7-B8F8BB82FDA8@microsoft.com...
> What SDK sample?
>
> I also want to change the flat file filename in my custom pipeline, but I

don't understand how to do it
> How do I get/set the ReceivedFileName context property in a custom

pipeline?
>
> Regards,
> Cecilie



Cecilie

2004-04-28, 8:36 am


Thanks, I will try it out....

Regards,
Cecilie
Robert Gimeno

2004-05-05, 7:36 am

I think there is an easier way to do this...

in the construction add an assignment for your output message and put the new filename into the file properies like this:

Message_Out(FILE.ReceivedFileName) = Variable_Name

(Variable_Name is a variable containg a string with the desired file name - derrive as you need)

then in the file send port refernce it thus:

URI: C:\Output\%SourceFileName%
Christof

2004-05-05, 12:36 pm

That's right. In the case you are using an orchestration this is most easy
thing to do.
Kind regards,

Christof

"Robert Gimeno" <anonymous@discussions.microsoft.com> wrote in message
news:CC59F2A1-E466-4749-818A-1BC0F53A2CBB@microsoft.com...
> I think there is an easier way to do this...
>
> in the construction add an assignment for your output message and put the

new filename into the file properies like this:
>
> Message_Out(FILE.ReceivedFileName) = Variable_Name
>
> (Variable_Name is a variable containg a string with the desired file

name - derrive as you need)
>
> then in the file send port refernce it thus:
>
> URI: C:\Output\%SourceFileName%



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com