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




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

    Dynamic output file path.  
Ragav


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


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





[ Post a follow-up to this message ]



    Re: Dynamic output file path.  
Doug Girard [MSFT]


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


 
11-19-04 10: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...
_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.







[ Post a follow-up to this message ]



    Re: Dynamic output file path.  
Ragav


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


 
11-23-04 12:51 PM

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] 
>
>
>.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:13 AM.      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