Resources for IT Professionals >
Forums Home
>
BizTalk Server Forums
>
BizTalk Server General
>
Create remote FTP directory via dynamic send port
Create remote FTP directory via dynamic send port
- Hi all,
I have a receive location that receives an XML file in the format mmddyy_guid.xml. I have an orchestration that subscribes to this message. Once this message is picked up i want my dynamic FTP send port to create a directory mmddyy at the root of the destination FTP site(ftp.test.com/CompanyA) and drop the file mmddyy_guid.xml. So my remote ftp location will look like this:
ftp.test.com/CompanyA/102809/102809_guid.xml
ftp.test.com/CompanyA/102909/102909_guid.xml
etc..
How would I go about implementing this? Please advise.
Answers
- Hi,
Here is one approach...
You can call a .Net component using an expression shape in the orechestration just before sending the message to the FTP location(Send Shape). Basically this .Net component will create a directory in the FTP location as required.
So First,you are creating a Directory in the FTP location as required using the .Net componet and then using dynamic send port, orchestration will drop the message on the corresponding FTP location(Address provided in the dynamic send port).
Hope this will help you.
Regards,
Abhijit
Abhijit Mahato Please "Mark as Answer" if Post has Answered the Question- Marked As Answer byAndrew_ZhuMSFT, ModeratorFriday, November 06, 2009 9:06 AM
- Proposed As Answer byRahulBizTalk Tuesday, November 03, 2009 6:18 PM
- HI,
I had a similar scenario wherein I needed to create the dynamic send location on FTP server upon the receipt of the messages. In my case, Port names were qualified as per the company name and then ours was EDI application so it was easy for us to get the company or party name. I created a custome pipeline component for disassemble and assemble stage [Before and After the receipt of the message] which was creating the directories at the FTP location on the receipt of messages. Thus for me a custom pipeline component was the solution. Please let me know if you need any further help. I could share the code with you, if required.
Vishnu- Marked As Answer byAndrew_ZhuMSFT, ModeratorFriday, November 06, 2009 9:06 AM
- Proposed As Answer byRahulBizTalk Tuesday, November 03, 2009 6:18 PM
All Replies
- never tried it but may be beforeput might work
http://blogs.msdn.com/gzunino/archive/2004/06/10/153165.aspx
KiranMP - Hi,
Here is one approach...
You can call a .Net component using an expression shape in the orechestration just before sending the message to the FTP location(Send Shape). Basically this .Net component will create a directory in the FTP location as required.
So First,you are creating a Directory in the FTP location as required using the .Net componet and then using dynamic send port, orchestration will drop the message on the corresponding FTP location(Address provided in the dynamic send port).
Hope this will help you.
Regards,
Abhijit
Abhijit Mahato Please "Mark as Answer" if Post has Answered the Question- Marked As Answer byAndrew_ZhuMSFT, ModeratorFriday, November 06, 2009 9:06 AM
- Proposed As Answer byRahulBizTalk Tuesday, November 03, 2009 6:18 PM
- HI,
I had a similar scenario wherein I needed to create the dynamic send location on FTP server upon the receipt of the messages. In my case, Port names were qualified as per the company name and then ours was EDI application so it was easy for us to get the company or party name. I created a custome pipeline component for disassemble and assemble stage [Before and After the receipt of the message] which was creating the directories at the FTP location on the receipt of messages. Thus for me a custom pipeline component was the solution. Please let me know if you need any further help. I could share the code with you, if required.
Vishnu- Marked As Answer byAndrew_ZhuMSFT, ModeratorFriday, November 06, 2009 9:06 AM
- Proposed As Answer byRahulBizTalk Tuesday, November 03, 2009 6:18 PM

