Resources for IT Professionals > Forums Home > BizTalk Server Forums > BizTalk Server General > Create remote FTP directory via dynamic send port
Ask a questionAsk a question
 

AnswerCreate remote FTP directory via dynamic send port

  • Thursday, October 29, 2009 4:53 PMfifo123 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Friday, October 30, 2009 7:43 AMAbhijit Mahato Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Tuesday, November 03, 2009 2:44 PMcallvishnu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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

All Replies

  • Thursday, October 29, 2009 6:08 PMKiran mp Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    never tried it but may be beforeput might work

    http://blogs.msdn.com/gzunino/archive/2004/06/10/153165.aspx
    KiranMP
  • Friday, October 30, 2009 7:43 AMAbhijit Mahato Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Tuesday, November 03, 2009 2:44 PMcallvishnu Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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