Sending multiple Zip files

Home Page Forums BizTalk 2004 – BizTalk 2010 Sending multiple Zip files

Viewing 1 reply thread
  • Author
    Posts
    • #17996

      Hello.

       I am trying to create a custom send pipeline that will receive several messages (Message Array) and add each of them to a zip file as a new entry.  The scenario is the following:

      I receive several files from the receive port, dissassamble them with a simple Flat File dissassembler that has one record that contains the contents of the file received.
      An Orchestration subscribes to these messages, collects them and calls the Send pipeline with an array of messages as an argument.
      Now, what needs to be done is to loop through these messages and compress each of them into a zingle Zip file.

      The problems I am having is that I can easily create an Encoder Pipeline component that zips a single file from a Flat File Assembler (The flat file assembler simply appends the messages in the array and passes the final output to the zip encoder). But when I try to zip each message seperately at the assembling stage of the pipeline I get the message on XML format, when I actually want to get the same output I started with (flat file assembled).

      Can anyone help me on this matter, any hints would be highly appreciated! 🙂

       Regards
      Gísli Snæbjörnsson
      Software Engineer

    • #18009

      Gísli,

      In your case, you'll need to build a custom Assembler component; you can't do what you want with a simple encoding component. Your assembler component will be called for each message passed as input to the pipeline. What you'll likely want to do is to have yiour custom assembler invoke the FFAsmComp for each message first and then pass that on to your zip component.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.