| Author |
BizTalk 2004: Dynamic Port Binding - Filename and Path
|
|
|
| Looking for input on how to use Dynamic Port Binding to supply part of the
output path and filename from properties within the message (say a Customer's
ID number for example)
Example of output path for customer # 123456 might be:
C:\BizTalk\Output\Customers\123456\data_
123456.xml - where 123456 in the
path and filename came from the "CustomerID" promoted property in the message.
Thanks for the feedback and help.
Mark
| |
| Christof [MVP] 2004-08-10, 5:49 pm |
| This post might help you out:
http://weblogs.asp.net/christof_cla.../18/159399.aspx
Best regards,
Christof
--
Christof [Microsoft BizTalk Server MVP]
"MarkS" <markscott@newsgroups.nospam> wrote in message
news:D3938D13-3C82-4C28-BFB2-2CC008AD1006@microsoft.com...
> Looking for input on how to use Dynamic Port Binding to supply part of the
> output path and filename from properties within the message (say a
Customer's
> ID number for example)
>
> Example of output path for customer # 123456 might be:
>
> C:\BizTalk\Output\Customers\123456\data_
123456.xml - where 123456 in the
> path and filename came from the "CustomerID" promoted property in the
message.
>
> Thanks for the feedback and help.
>
> Mark
| |
|
| Thank you for the reply. That get's me started... but I still need some
information on how to dynamically send the filename and path (to either the
FILE or FTP adapters)
"Christof [MVP]" wrote:
> This post might help you out:
> http://weblogs.asp.net/christof_cla.../18/159399.aspx
>
> Best regards,
> Christof
>
> --
> Christof [Microsoft BizTalk Server MVP]
>
> "MarkS" <markscott@newsgroups.nospam> wrote in message
> news:D3938D13-3C82-4C28-BFB2-2CC008AD1006@microsoft.com...
> Customer's
> message.
>
>
>
| |
| Christof [MVP] 2004-08-10, 5:49 pm |
| Just change the context on the message you are sending, just as explained in
the blog.
Changing a message's context can be done in either your orchestration or in
the pipeline.
If you want to change the path for the outbound file message, use a dynamic
port. The concrete destination of that port can be set using an expression
shape as well...
Hope that helps.
Best regards!
Christof
"MarkS" <markscott@newsgroups.nospam> wrote in message
news:DB408152-D848-46E7-AE78-19C71C56CE67@microsoft.com...
> Thank you for the reply. That get's me started... but I still need some
> information on how to dynamically send the filename and path (to either
the[vbcol=seagreen]
> FILE or FTP adapters)
>
> "Christof [MVP]" wrote:
>
the[vbcol=seagreen]
the[vbcol=seagreen]
| |
|
| This gets me pointed in the right direction, but I still do not see any
information on how to build a dynamic path, filename or FTP address. That
was part of my original question (see below).
Your example for the ftp stuff is hard coded...
"ftp://myserver/mydirectory/myfilename.xml" I need to know how to specify
values (based on somthing like a promoted property for example) for the path
and filename. From your example it might be something like this:
"ftp://serverNameOrIP/customers/" + customerID + "/" + sourceFileName
The thing is I do not kow how to get a value from the message (such as
customerID) and how to get the original source's filename as you would using
%SourceFileName%
Thanks,
Mark
"Christof [MVP]" wrote:
> Just change the context on the message you are sending, just as explained in
> the blog.
> Changing a message's context can be done in either your orchestration or in
> the pipeline.
>
> If you want to change the path for the outbound file message, use a dynamic
> port. The concrete destination of that port can be set using an expression
> shape as well...
>
> Hope that helps.
>
> Best regards!
> Christof
>
>
> "MarkS" <markscott@newsgroups.nospam> wrote in message
> news:DB408152-D848-46E7-AE78-19C71C56CE67@microsoft.com...
> the
> the
> the
>
>
>
| |
| Yossi Dahan 2004-08-13, 2:48 am |
| Mark,
the original name is in the message's context - FILE.ReceivedFileName
to access your information you have to promote it using a property schema,
then you will be able to access it and embed it in your filename.
Yossi Dahan.
"MarkS" <markscott@newsgroups.nospam> wrote in message
news:87ECAD8E-D5A6-44CE-835E-9B53B64FBAB2@microsoft.com...
> This gets me pointed in the right direction, but I still do not see any
> information on how to build a dynamic path, filename or FTP address. That
> was part of my original question (see below).
>
> Your example for the ftp stuff is hard coded...
> "ftp://myserver/mydirectory/myfilename.xml" I need to know how to specify
> values (based on somthing like a promoted property for example) for the
path
> and filename. From your example it might be something like this:
>
> "ftp://serverNameOrIP/customers/" + customerID + "/" + sourceFileName
>
> The thing is I do not kow how to get a value from the message (such as
> customerID) and how to get the original source's filename as you would
using[vbcol=seagreen]
> %SourceFileName%
>
> Thanks,
> Mark
>
>
> "Christof [MVP]" wrote:
>
explained in[vbcol=seagreen]
in[vbcol=seagreen]
dynamic[vbcol=seagreen]
expression[vbcol=seagreen]
some[vbcol=seagreen]
either[vbcol=seagreen]
http://weblogs.asp.net/christof_cla.../18/159399.aspx[vbcol=seagreen]
part of[vbcol=seagreen]
in[vbcol=seagreen]
the[vbcol=seagreen]
|
|
|
|