BizTalk Server General - Dynamic output file path.

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > Dynamic output file path.





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 Dynamic output file path.
Ragav

2004-11-19, 5:48 pm

Dynamic output file path.

I think i need to use the Dynamic port to assign the
value as Port_Name(Microsoft.XLANGs.BaseTypes.Address) =
sFileName;

But, I need to construct a file path and name dynamically
for each of the output file based on a logic below.

A initial file path from a configurable file(may be xml
file) + "\" + 1st N char of Input file name + time stamp
+ ".xml"

How will i incorporate this logic in Biztalk expression
shape?

Or do i need to call a .net component to pass and get the
manipulated values back to biztalk ? If so, how?

Thanks in Advance.
Doug Girard [MSFT]

2004-11-19, 5:48 pm

Ragav,

You're on the right track. Use
Port_Name(Microsoft.XLANGs.BaseTypes.Address) = "file://" + sFileName;
from an Expression Shape where Port_Name is a dynamic send port.

The best way to to set sFileName with the amount of customization you
require is with a referenced .NET component. See the article "Using
Expressions to Create Objects and Call Object Methods" in the documentation
for how to create .NET object variables and invoke their methods. This is
available online at
http://msdn.microsoft.com/library/d...g_orch_btam.asp

If you need to parse characters from the original filename, you can also
have the method perform this operation using the ReceivedFileName context
property.

HTH,
Doug Girard [MSFT]

Note: This posting is provided "AS IS" with no warranties, and confers no
rights.


"Ragav" <anonymous@discussions.microsoft.com> wrote in message
news:832d01c4ce5d$07673060$a301280a@phx.gbl...
> Dynamic output file path.
>
> I think i need to use the Dynamic port to assign the
> value as Port_Name(Microsoft.XLANGs.BaseTypes.Address) =
> sFileName;
>
> But, I need to construct a file path and name dynamically
> for each of the output file based on a logic below.
>
> A initial file path from a configurable file(may be xml
> file) + "\" + 1st N char of Input file name + time stamp
> + ".xml"
>
> How will i incorporate this logic in Biztalk expression
> shape?
>
> Or do i need to call a .net component to pass and get the
> manipulated values back to biztalk ? If so, how?
>
> Thanks in Advance.



Ragav

2004-11-23, 7:51 am

Thanks Doug!
I did it with your help!!
-Ragav
>-----Original Message-----
>Ragav,
>
>You're on the right track. Use
>Port_Name(Microsoft.XLANGs.BaseTypes.Address)

= "file://" + sFileName;
>from an Expression Shape where Port_Name is a dynamic

send port.
>
>The best way to to set sFileName with the amount of

customization you
>require is with a referenced .NET component. See the

article "Using
>Expressions to Create Objects and Call Object Methods"

in the documentation
>for how to create .NET object variables and invoke their

methods. This is
>available online at
>http://msdn.microsoft.com/library/default.asp?

url=/library/en-us/sdk/htm/ebiz_prog_orch_btam.asp
>
>If you need to parse characters from the original

filename, you can also
>have the method perform this operation using the

ReceivedFileName context
>property.
>
>HTH,
>Doug Girard [MSFT]
>
>Note: This posting is provided "AS IS" with no

warranties, and confers no
>rights.
>
>
>"Ragav" <anonymous@discussions.microsoft.com> wrote in

message
>news:832d01c4ce5d$07673060$a301280a@phx.gbl...
=[vbcol=seagreen]
dynamically[vbcol=seagreen]
stamp[vbcol=seagreen]
the[vbcol=seagreen]
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com