BizTalk 2004: Dynamic Port Binding - Filename and 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 Orchestration > BizTalk 2004: Dynamic Port Binding - Filename and Path




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

    BizTalk 2004: Dynamic Port Binding - Filename and Path  
MarkS


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


 
08-10-04 10:49 PM

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 messag
e.

Thanks for the feedback and help.

Mark





[ Post a follow-up to this message ]



    Re: BizTalk 2004: Dynamic Port Binding - Filename and Path  
Christof [MVP]


Report This Message To A Moderator Edit/Delete Message


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







[ Post a follow-up to this message ]



    Re: BizTalk 2004: Dynamic Port Binding - Filename and Path  
MarkS


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


 
08-10-04 10:49 PM

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





[ Post a follow-up to this message ]



    Re: BizTalk 2004: Dynamic Port Binding - Filename and Path  
Christof [MVP]


Report This Message To A Moderator Edit/Delete Message


 
08-10-04 10: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] 







[ Post a follow-up to this message ]



    Re: BizTalk 2004: Dynamic Port Binding - Filename and Path  
MarkS


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


 
08-11-04 10:52 PM

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 i
n
> the pipeline.
>
> If you want to change the path for the outbound file message, use a dynami
c
> port.  The concrete destination of that port can be set using an expressio
n
> 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 
>
>
>





[ Post a follow-up to this message ]



    Re: BizTalk 2004: Dynamic Port Binding - Filename and Path  
Yossi Dahan


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


 
08-13-04 07: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] 







[ Post a follow-up to this message ]



    Sponsored Links  




 





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