ZIP files in Payload

Hi,
I receive email with ZIP Files as attachements. I have to save this attachements on my server. The mail sender adapter (Typ Mail) work good. Into the outgoing XI message Payload the data have been stored correctly.
The Problem is that my Receiver File Adapter write the content of the Payload on the server but the ZIP file is empty.
Could somebody give me informations about the file adapter Configuration to solve my Problem. I already use the PayloadSwapBean Module configuration.
I need for this configuration more information.
Thank you
MAt

1. Re: Mail Adapter ZIP File Attachment
2. Re: Zip file attachment
3. Re: XI File Adapter sending/receiving zip files
4. Process Integration (PI) & SOA Middleware
I am not sure if you went through these threads.If not they might help you.

Similar Messages

  • Howto use zipped-file for payload?

    hi experts,
    in our interface, we get a message with a zipped xml-document. so i have to change the "main payload" to the attachment and then unzip the file.
    to swap the payload i used the following entry in the "modul"-tab:
    AF_Modules/PayloadSwapBean, local enterprise bean, transform
    keys:
    transform, swap.keyName, payload-name
    transform, swap.keyValue, attachment-1
    --> i think this works, because in the response message i see only the payload "attachment-1"
    but i am not able to unzip the file.
    i used the PayloadZipBean with the following values:
    AF_Modules/PayloadZipBean, local enterprise bean, unzip
    keys:
    unzip, zip.mode, unzip
    what am i doing wrong, or did i forgot something?
    thx 4 your help!

    Hi dieter,
    in your sender CC (tab module), try that:
    Processing Sequence:
    Nbr     Module Name                     Type                    Module Key
    1     AF_Modules/PayloadZipBean     Local Enterprise Bean     unzip
    2     AF_Modules/PayloadSwapBean     Local Enterprise Bean     swappayload
    3     CallSapAdapter                     Local Enterprise Bean     0
    Module Configuration:
    Module Key               Parameter Name     Parameter Value
    swappayload          swap.keyName     content-type
    swappayload          swap.keyValue     application/xml
    unzip                     zip.mod         unzip
    Regards.
    Mickael

  • Multiple payload mapping in zip file..

    Hi,
    is it possible to map multiple Payloads in one XI Message?
    My Source File is a zip (xml files) I unziped it in Sender CC
    I have message structure as this in my integration server
    XI Message
    - payload 1
    - payload 2
    As there are multiple structure(different structure) in zip file, I can't create Message structure.
    I want to map every file in zip seperately and send it to different location.
    I used 2 Interface Mapping and also in interface determination try to select the Interface Mapping based on the file name in zip file. But I m getting error Unable to find the Inbound structure at Interface determination.
    If I won't give any condition in interface determination. the first payload is getting mapped.
    So, is it possible in general to get multi payloads mapped without BPM?
    My Questions are:--
    +How to create a structure for Input message (All the files in zip have different structure).?+
       +Why am I getting error "Unable to find the Inbound structure" at Interface determination even though I m giving the correct file name for both.+
      +Is it possible using java mapping...? If yes then please throw some light....+
    Thanks and best regards
    Ankita

    hi prateek
      thnaks for urs quick response.
    I have different structure at the receiver end also. for every file in zip folder there will be different mapping.
    you may unzip the files at a temporary location.
    Is there any way I can hold the files(in one zip folder) in PI after unzipping and process ony by one..
    Please help.
    Thanks
    Ankita

  • Split a ZIP File in smaller Chunks / payloads on ECC 6.0 (NOT PI)

    I call a external web service directly from ECC6.0.  In one of the proxy class's methods I need to send a zip file. I can generate ZIP file using SAP supplied class. The file size of this zip file 150 MB and I want to break this file in smaller chunks say 2 MB chunks. Is there a FM / Class / some way to break this file into smaller chunks?
    Appreciate your inputs
    Thanks,
    Vikram

    Hi Vikram,
    You can use the FM DX_SPLIT_FILE to split the zip file.
    Regards,
    Ashvin

  • Rename the zip file and send it using the Receiver Mail Adapter

    Hi,
    We have a custom module that will create multiple attachments. The result is then passed to the PayloadZipBean, which zips as per required.
    When we output this to a file adapter, we provide the file name as say "zippedfile.zip" the result is as expected.
    For example, if the custom module created 3 attachments with the names as file1.txt, file2.txt and file3.txt, the zip file zippedfile.zip, will contain 3 files as file1.txt, file2.txt and file3.txt.
    The issue that we are facing is when we use the mail adapter, the zip file is getting renamed to file1.txt.zip i.e to say that it takes the name of the main payload from the custom module (file1.txt)
    TextPayload txtpayload = message.getDocument();
    txtpayload.setContentType("text/plain");
    txtpayload.setName("file1.txt");
    moduleData.setPrincipalData(message);
    We tried using the MessageTransformbean but it doesn't seem to change the name of the file.
    Not sure where we are going wrong. Is it that the output of the payloadzipbean cannot be used and altered by MessageTransformbean?
    Is there any alternative as to rename the name of zipfiles and use it in the mail adapter?
    Appreciate any help on this regard.
    Regards,
    Shabz

    Solved.
    use Transform.ContentDisposition - attachment;filename="youfilename"
    Do read the mail adapter FAQ.
    The parameter can vary for different mail client.

  • Process txt files in zip file

    Hello everybody,
    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Julio Cesar

    Hi,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Re: PI needs to obtain a zip file via FTP using the File adapter
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • Scenario: SOAP message with attached .zip file to FTP ?

    Hi all,
    I've searched SDN etc but got no good hints to my problem.
    My scenario is tht we are receiving an XML message via SOAP adapter and this is a MIME multipart message so it carries also a attached zip-file.
    The XML and the attached zip-file should then be saved over FTP.
    It enters IS correctly and I can see that I have the attachment and it goes to AE. I can see payload and attachment in the statusreport on receiver cc.
    The FTP adapter saves the payload XML correctly but the attachment is not saved anywhere.
    I have not configured any modules, BIC etc in the FTP adapter and I need some input on how to set this up tp put both files on FTP server.
    In the future the FILE adapter will be used and then I wounder if I will get the same problem there?

    I dont think there is a direct way of doing this. I can suggest you a method. In the directory receiver determination use 2 receivers with no condition. You message will get split in to two now. Create the interface determinations and receiver agreements. Complete one of them normally. It will sav the xml t FTP. For the other one, in the adapter use the payloadswapbean. It will swap the attachement to payload. THis one would save your zip on the ftp server.
    Hope its clear..!!
    VJ

  • Need to send the zip file to mail as an attachment

    i want to pick the zip file which consists some 2,3 files inside it. and send as it is to mail as an attachment.what i did is
    i have taken one zip file,,, "testing.zip" inside it i have "test1.txt" & "test2.csv"
    i created sender CC ,,in that i used module payloadzipbean and  unzipped and called the file adapter.. created reciever CC as mail ..used same payload module now here i zipped all the payloads.
    Result..i see the attachment coming as "test1.txt.zip" ..here i can see inside this zipfile my original file names as "test1.txt"&"test2.csv" as i enabled ASMA in both CC.
    issues:i am unable to get the original file name like "testing.zip" ,,
    can anyone help me in this.
    Regards,
    Loordh

    Hi  all,
    as i posted last time my requirement ,i am going with java mapping for my scenario. i am using this code .
    http://wiki.sdn.sap.com/wiki/display/XI/Dynamicfilenameforpass-through+scenario
    this is working perfect for zip file  (file to file) scenario. but my scenario is file to mail ..as i need to send this to mail package there it is throwing error.i am getting  "zip file name as attachment properly but when  i try to  open it is giving error in zip file." this is what i modied code ..i am able to see my messge in sender CC and reciever CC..any java experts please help on this.
    try {
    // create XML structure of mail package
    String output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
    + "<ns:Mail xmlns:ns=\"http://sap.com/xi/XI/Mail/30\">"
    + "<Subject>" + mailSubject + "</Subject>"
    + "<From>" + mailSender + "</From>"
    + "<To>" + mailReceiver + "</To>"
    + "<Content_Type>multipart/mixed; boundary=\"" + boundary + "\"</Content_Type>"
    + "<Content>";
    out.write(output.getBytes());
    // create the declaration of the MIME parts
    //First part
    output = "--" + boundary + CRLF
    + "Content-Type: text/plain; charset=UTF-8" + CRLF
    //+ "Content-Transfer-Encoding: 8bit" + CRLF
    + "Content-Disposition: inline" + CRLF + CRLF
    + mailContent + CRLF
    //Second part
    + "--" + boundary + CRLF
    + "Content-Type: Application/zip; name=" + attachmentName + CRLF
    //+ "Content-Transfer-Encoding: base64" + CRLF
    + "Content-Disposition: attachment; filename=" + attachmentName + CRLF + CRLF;
    out.write(output.getBytes());
    //Source is taken as attachment
    copySource(in, out);
    out.write("</Content></ns:Mail>".getBytes());
    } catch (IOException e) {
    throw new StreamTransformationException(e.getMessage());
    protected static void copySource(InputStream in, OutputStream out)
    throws IOException {
    byte[] bbuf = new bytehttp://in.available();
    int bblen = in.read(bbuf);
    if (!(bblen < 0)) {
    //String sbuf = new String(bbuf);
    //String encoded = Base64.encode(sbuf);
    // replace all control characters with escape sequences
    //sbuf = sbuf.replaceAll("&", "&");
    //sbuf = sbuf.replaceAll("\"", """);
    //sbuf = sbuf.replaceAll("'", "&apos;");
    //sbuf = sbuf.replaceAll("<"<");
    //sbuf = sbuf.replaceAll(">", ">");
    out.write(bbuf);}}

  • PI needs to obtain a zip file via FTP using the File adapter

    I have a scenario where PI needs to obtain a zip file via FTP using the File adapter, this zip file contains a number of txt files that I need to process, and the content of one of them send it to an ECC, now I'm using the PayloadZipBean Module in the Sender FIle Adapter, and I have two things if I use the Message Protocol as File, I get a Payload for each txt file in the zip file, but this payload has no structure, and if I use the File Content Conversion I get an XML strcuture with only one field and a strange string in it, and somewhere in this string the names of the files I assume all the content of the zip file, can anyone help on how could I achieve what I need that is to pull the zip file via SAP PI, then unzip it, and with the content of one of the txt files send it to an ECC via ABAP Proxy, thanks in advance for your answers.
    Regards,
    Raul Alvarado

    Hello Raul,
    you can do it in futher way ...
    pickup zip file and simply extract and dump it in another temp folder (can use scripts on OS level).
    @ then Use another sender communication channel to pickup all these text file .
    for further clarification you can use these links also. -
    Process txt files in zip file
    Accessing File using FTP from Java Mapping
    File Sender Adapter with FTP protocol
    BR
    Raj

  • Zip file with Adapter Module

    Dear Frnds,
    i created one file to file scenario i want output Zip file format for this requirement i used Adapter module ike below but am not able open the output Zip file  plpz help on this .
    Module
    Name:   loacalejbs/AF_Modules/PayloadZipbean
    Module
    Type:    Local Enterprise Bean
    Module
    Key: Zip  
    Parameter
    value:    zipAll                      --   To compress all payloads
    Regards,
    Rajendra K

    Hi Rajendar,
    Refer below blog on how to use payloadzip bean.
    Working with the PayloadZipBean module of the XI Adapter Framework
    You can also zip your output file by using OS command at receiver channel with a unix script.
    Regards,
    Aamir

  • Send email with password protected zip file attachment

    Hi Experts,
    The requirement is to zip a password protected excel file and send the zipfile through email. There is no middleware(PI) involved. The program has to be run in background mode. It is possible to create a password protected excel file using OLE method, but it will not work in background mode.
    Also it is possible to place the zip file in application server, but I am not able to give password for this file.
    Any help would be greatly appreciated.
    Regards,
    Renjith Nair

    Hi,
    You have to write a customer adapter module to handle this requirement.
    Zip/Unzip can be done using the payloadzipbean standard module:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/content.htm
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Is encoding an option instead of password for you:
    /people/farooq.farooqui3/blog/2008/09/24/sap-xipi-encode-outgoing-payload-using-adapter-module

  • Read encrpted zip file and ftp unzip file

    Hi,
    I have a situation,where i need to read 3 zip files, which are encrpted, and each zip file may have lot of images and text files. all i want to do is, read these 3 zip files and unzip + ftp to another directory. No mapping is involved. if the three files are not there, it should error out.
    I have some ideas, but thought if any of you have better ideas.
    Thanks
    Pandari

    Hi Pandari
    File adapter
    module to zip and unzip
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    <b>Check this weblog:</b>
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Check this out !
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
    also
    https://service.sap.com/sap/support/notes/965256
    Check this weblog on how to zip the file using XI:
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    PayloadZip Bean
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework%3Fpage%3Dlast%26x-order%3Ddate%26x-showcontent%3Doff
    Through command line
    Check case 2 in this blog
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    or ref plsz go tru it,
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Check this weblog on this from stefan:
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    http://help.sap.com/saphelp_nw70/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    XI/PI: Command line sample functions -> go through case 2
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    Create encrypted ZIP files
    Thanks!!!

  • ZIP-File- XML-Files- XSLT- IDOC(invoice)

    Hi ,
    I am doing file to idoc scenario on BC. I am getting the mail with an attachment file in zip format. It must be extract  to XML files and after that each of this files must be transformed via xslt to idoc to R3. Please help with  solution!!!
    Thanks in advance
    Regards
    Olga

    In your file adapter, use the following modules in module processor chain:
    1. PayloadSwapBean module to get the attachment as main payload;
    2. PayloadZipBean module to extract the XML from zip file;
    next steps should be standard steps for file-to-IDOC scenarios.
    Check the wiki for help with those modules:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/xi_adapter_notes&
    Regards,
    Henrique.

  • MFT 12.1.3 does not decompress all files when zip file size 2G

    Hi,
    I am having an issue with MFT and SOA. In my setup MFT receives zip files, decompress the zip file into several other files and send them as file reference to a SOA process for further processing. Now I am getting a very large file with a size of around 2 G containing 4 files where the larges file is 5G uncompressed. However when I submit this file to the MFT embedded ftp server MFT moves the file to the payload area, and start decompressing.It stops after compressing the first file. Can't find any error message in the server logs.
    Has somebody seen this kind of behavior?
    Any tip or tricks where to look to find more info about what could be the issue?
    Thanks in advance Frans

    With iPhoto crashing while trying to create a new library makes me think the application may the culprit an you may have to reinstall it. Have you tried the library wihile booted into  Safe Mode?
    Are you able to boot into another user account on your Mac and run iPhoto there?  If so then your home account looks suspicious.
    OT

  • Zipping the output payload and Unzipping the incoming payload with HTTP_AEE Receiver adapter

    Dear Expert,
    I have a synchronous scenario(ABAP proxy to HTTP_AEE) to send the payroll of the employees to bank. As payroll payload size will be huge, I need to Zip the outgoing payload to bank, also I need to unzip the incoming payload(response) from the bank, because bank will be sending the response in zip format.
    As I am using HTTP_AAE receiver adapter, therefore HTTP_AAE receiver adapter needs to zip the output payload as well as unzip the incoming payloads from bank.
    I understand we have PayloadZipBean , to do zip and unzip, and we can configure it under module tab, however I just want to clarify the below point.
    1- Can I do zip and unzip both under the  HTTP_AAE receiver adapter, if yes then what will be the order? I mean first zip then unzip right?
    2- Has anyone used PayloadZipBean with HTTP_AAE receiver adapter in sync mode, if yes, please share you experience.
    3- I need to name ZIP file after zipping as "PRMSG" , how can I give name in HTTP_AAE adapter, I have tried with zip.filenameKey but it didn't work.
    Thanks,
    Farhan

    Hi Praveen,
    Thanks a lot for the response, seems I can rely on this PayloadZipBean  for my requirement.
    One more question, As I have already created the HTTP response and Proxy response structure message type, moreover message mapping has been created to map these. So, once I will receive the response from bank, in zip file format, and when PayloadZipBean will unzip the convert it to XML payload, do I need to do anything else to map it my response structure?
    Thanks,
    Farhan

Maybe you are looking for

  • Directions sent from Mavericks 10.9.5 don't show up on iOS 8.3

    I just noticed today while trying to send directions from my Mac (Mavericks 10.9.5) to my iPad (3rd generation, iOS 8.3) that it doesn't show up on notifications nor in the App itself. I've tried: Logging out of iCloud on both devices and logging bac

  • ITunes blocks Harry Potter mp3s.  Why ?

    We recently bought the Harry Potter audio books in mp3 format.  I can import them into iTunes but I can not get them into the iCloud or to any of my devices - iPads or iPhones.  iTunes puts a NotCloud icon in the row for each.  If you click on the ic

  • Too many decimals in Average value

    Hi I am using Report Builder and the wizard do design a table which i deploy as a .jsp page. For some columns in the table I select to display the average values. Some of the values looks fine with one decimal as i want, but some values is displayed

  • Navigation issue using jsf, tiles, tomahawk  :loosing faces context

    Hi all, I enhanced my webapp using tomahawks jscookmenu. Triggering 1 menuItem the wanted pages displays correctly but the next click anywhere in the application shows this error: org.apache.jasper.JasperException: javax.faces.FacesException: Faces c

  • Reinstall Adobe PDF Printer

    I am using Windows XP and Acrobat 7.0 Professional.  I inadvertantly deleted PFD from the printer list and don't know how to restore it.  I have reviewed previous posts and find nothing that helps.  Can you provide the method to reinstall PDF as a pr