Re: Generate a file and compress it



Hello,

1) You just have to create a send port (like the MQ one) and associate
it with the FILE adapter. You configure your send port to specify the
location of the folder where you want the files to be created. If you
already send a XML file with MQ, you have nothing else to do to send
the same XML file to a folder;

2) To compress the message, you have to create a send pipeline in
charge of compressing the message before that the message goes out of
BizTalk. You have 2 options:
- Create your own pipeline component. You can find a sample of this
pipeline component in the BizTalk 2006 SDK Samples;
- Use the /n software pipeline component : http://www.nsoftware.com/products/biztalk/

David Grospelier
http://blog.noveli.fr

On 6 fév, 20:13, Jeff Tressler
<JeffTress...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Our normal interface is to generate XML messages and use WebSphere MQ
(MQSeries) to send the XML messages to the remote systems.

We have an interface with a remote system (Legacy Mainframe - COBOL) that
does not have MQ. They plan to manually parse the XML to get the data they
need so we will continue to use XML.

Problems is we must take the XML message and write it to a file. Once the
file is created, it needs to be zipped to compress into a smaller file.

Note: We use BizTalk 2004 and .Net 1.1.

I have two questions:

1) How do I write the XML message to a file? I have created flat file schema
but these seem to be best to map XML document element values to fixed length
field kind of processing. I want to get a XML document and write the document
unchanged to a file.

2) Once the file is created, zip the file. We found some C# code but beleive
the System.IO.Compression libraries are .Net 2.0 so may not be useful. I
suppose some option on the Send Port would be great but quick look did not
turn anything up. What are some options to do this?
--
There are 10 kinds of people, those who understand binary and those that don't
There's no place like 127.0.0.1
================================
3.14159 + Ice Cream = Pi ala mode

.



Relevant Pages

  • Re: XML Parsing: , illegal name character
    ... I have also posted the xml message. ... XML message into column of 'xml' datatype in SQL 2005 database. ... XML message has & character in one of the tag value. ...
    (microsoft.public.sqlserver.programming)
  • Re: XML Parsing: , illegal name character
    ... I can confirm that in incoming xml message, there is no space between & and ... I have also posted the xml message. ... XML message has & character in one of the tag value. ...
    (microsoft.public.sqlserver.programming)
  • RE: Create one File Output for every input record ???
    ... because i first map flat to flat and then in another channel flat to ... Do you have a sample how to split uf an xml message into many ...
    (microsoft.public.biztalk.general)
  • Re: How to write a VB2008 Web Service to accept text/data
    ... I have a WIN32 DLL which has to process this XML message because it is part of over 100 very large functions which do a tremendous amount of work. ... My issue is just collecting the data and getting it into the WIN32 dll - and what is the most efficient way to collect the HTTPS Post and pass that RAW XML data over to the WIN32 C++ or PASCAL DLL. ...
    (microsoft.public.dotnet.languages.vb)
  • Making an XML mess, oh.. message
    ... Trying a XML message by instanitated a class and ... now the receiver dont like my XML and ... I cant solve it nicely.. ...
    (microsoft.public.dotnet.languages.csharp)

Loading