Changing flat file filename
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Changing flat file filename




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Changing flat file filename  
Tanglesoft


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-04 02:42 PM

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.







[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Christof


Report This Message To A Moderator Edit/Delete Message


 
04-06-04 11: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.
>
>







[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Charly99


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 04:38 PM

"Christof" <bts2004communityfeedback (at) hotmail (dot) com> wrote in message news:<ur5IFACH
EHA.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 specifie
d
> 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.





[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Christof


Report This Message To A Moderator Edit/Delete Message


 
04-21-04 10: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.







[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Cecilie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 08:35 PM

What SDK sample?

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

Regards,
Cecilie





[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Christof


Report This Message To A Moderator Edit/Delete Message


 
04-27-04 08: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







[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Cecilie


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-28-04 01:36 PM


Thanks, I will try it out....

Regards,
Cecilie





[ Post a follow-up to this message ]



    RE: Changing flat file filename  
Robert Gimeno


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-05-04 12:36 PM

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

in the construction add an assignment for your output message and put the ne
w 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%





[ Post a follow-up to this message ]



    Re: Changing flat file filename  
Christof


Report This Message To A Moderator Edit/Delete Message


 
05-05-04 05: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%







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:42 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register