How to unzip payload in xMII

Hi
          We are receiving payload (xml messages) from PI system in zip format since it is too big. I would like to know how can we unzip the xmlmessages in MII?
Thanks in advance
Shaji

Hi ,
Go thru this blog...it should throw some light.
http://sapdiary.com/index.php?option=com_content&view=article&id=12674:data-compression-using-custom-actions-in-sap-mii&catid=81:data-services&Itemid=166
Regards,
ak
Edited by: arun kurup on Oct 19, 2011 11:23 AM

Similar Messages

  • How to unzip   using flex

    How to unzip a zip archve

    Hi, strange I didn't find any answer in the forum, so I paste my code :
    You should first read the zip file and put its content into  i_zip_file_xstring variable of type xstring
      DATA lo_zip TYPE REF TO cl_abap_zip.
      DATA lt_zip_file TYPE cl_abap_zip=>t_files.
      DATA ls_zip_file TYPE LINE OF cl_abap_zip=>t_files.
      DATA l_xstring TYPE xstring.
      CREATE OBJECT lo_zip.
      CALL METHOD lo_zip->load
        EXPORTING
          zip             = i_zip_file_xstring
        EXCEPTIONS
          zip_parse_error = 1
          OTHERS          = 2.
      LOOP AT lo_zip->files INTO ls_zip_file.
        WRITE : / ls_zip_file-name, ls_zip_file-date, ls_zip_file-time, ls_zip_file-size.
    * unzip file, put its unzipped content into L_XSTRING
        CALL METHOD lo_zip->get
          EXPORTING
            name                    = ls_zip_file-name
          IMPORTING
            content                 = l_xstring
          EXCEPTIONS
            zip_index_error         = 1
            zip_decompression_error = 2
            OTHERS                  = 3.
    *>>>>>>>>>>>>>>
    * PUT YOUR CODE HERE TO PROCESS the L_XSTRING variable which contains each unzipped file
    *<<<<<<<<<<<<<<
      ENDLOOP.

  • How can the payload of a XI message be normalized to the RFC-XMLuFF1F

    How can the payload of a XI message be normalized to the RFC-XML
    format? Is it possible to remove unwanted XML-Namespace declarations
    from a RFC-XML document?

    While sending a message to a RFC-Adapter receiver channel a error
    is thrown during RFC-XML-document parsing. The RFC-XML document looks
    like it has the correct RFC-XML format but there are some additional
    XML elements (e.g. XML-Namespace declarations). These elements can't
    be understood by the RFC-XML parser of the RFC-Adapter. This parser
    only is suitable for correct RFC-XML documents (like created by a
    RFC-Adapter sender channel or the SAP JCO).To remove the unneeded elements from the RFC-XML document a message
    mapping within the Integration Server can be used. The attached file
    rfcnormalizer.jar contains a XSLT-Stylesheet which can be used for
    this purpose.

  • How to create users in xMII 12.0

    Hi,
    I am new to xMII 12.0. I know how to create users in xMII 11.5 Menu->Security Services->Security Manger->User Management.
    But I am having difficulty in creating users in xMII 12.0. Can someone help in this regard.
    Thanks,
    Srinivas.

    Jeremy,
    Thank you very much. Now I can see User Management link under http://server:port.
    It looks like I do not have proper authorization to get into this link as it is giving java exception.
    Anyway I got the answer from you which I am looking for and I will work with our xMII system admin.
    Thanks,
    Srinivas.

  • How to UnZip Binary Distribution?

    I have downloaded the Binary distribution, but I can't figure out how to unzip it. My OS is windows XP. Thank you.

    I use this:
    http://www.7-zip.org/

  • How to unzip  a .tar.tar file

    Hi ,
    I have downloaded jexel api from net. But it come as jexcelapi_2_5_9.tar.tar. i tried to unzip using winzip. But its not working. Can anybody tell how to unzip this?

    Winzip knows how to read tar files.
    This is just a wild guess, but try this:
    - Copy the file, and rename it jexcelapi_2_5_9.tar.gz
    - You may have to do this in cmd.exe because the Windows graphical shell often screws up file names
    - Then use WinZip on the copy of the file with the new name.
    I'm thinking that maybe when you downloaded the file the filename got corrupted.

  • How to unzip gz (gunzip ) file

    Hi Everybody,
                             can anybody please tell me how to unzip file with gz (gunzip) extension.I have tried to unarchive by using powerarchive and unzip tools.I even tried gzip tool. Please help me .
    S. Singh

    Hi Sukhwinder,
    For this first intall gunzip. A free version is available here:
    http://www.gzip.org/
    After intallation go to cmd promp and transfer to the path where gzip is installed.
    Finally type in gzip -d <full path of the file to be decompressed>.
    Regards.
    Ruchit.

  • How to unzip a file

    please tell me how to unzip a downloaded file on a macbook pro.

    Click on it.  If that does not work, Download THE UNARCHIVER from the app store.
    Ciao.

  • How to encrypt Payload in Composite BPEL 11g

    I'm trying to encrypt payload information like the ssn number or the cc number.
    I did create simple sync process assigned the input -- to -- output variable.
    Then created Properties for Input String
    Then create Properties Aliases for Input String
    The Added the encryptProperties property on the Composite.xml.
    But that doesnt seems be working.
    I did follow this blog to encrypt the payload this link was for 10g , I tried replicating for 11g.
    http://soa-bpel-esb.blogspot.com/2010/06/how-to-encrypt-payloads-in-bpel.html
    Does anyone have any suggestions which would help gets going..
    Regards
    Sabir

    Hi Arun,
    In the sample code for encryption the namespace and xpath are hardcoded. Do you know how we can pass xpath dynamically from the soa process so that every process can use the same java code(so that no need to modify xpath in the java code for each and every process)?

  • How to encrypt payload in BPEL 11g,Specific Fileds.

    How to encrypt payload in BPEL 11g,Specific Fileds.

    By adding a wsm policy to the service and encrypt parts of the payload?
    http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/sca_policy.htm#CHDHAJIH

  • How to access Payload in XI Adapter Module

    Hello,
    I have to enhance a adapter module in xi very urgently. Target is to access a node of the XML payload and retrieve the corresponding value.
    This is how my document looks like:
    <mt_test>
         <element1>
              <…> </…>
         </element1>
         <element2>
              <LOG_NO>4711 </LOG_NO>
         <element2>
    </mt_test>
    I need now access the element <LOG_NO>. This can only appear one time in the whole xml document. My code that I did so far (inside the process method) to retrieve this element is like this:
    XMLPayload xmlpayload = msg.getDocument();
         DocumentBuilderFactory factory = null;     
         factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         Document document = builder.parse ((InputStream)xmlpayload.getInputStream());
         Element rootNode = document.getDocumentElement();
    <…and now I have no clue anymore…:-/…>
    May you give me an example how to access the node <LOG_NO> and save the corresponding value in a String variable?
    I would be really thankful.
    Greetings and thanks in advance,
    Tobias

    Hi,
    >>>found no solution with PI Standard Import to support FTP inside the Adapter Module
    why would you? file adapter supports FTP - so you don't need it
    >>>In order to use FTP library, is there any standard library available or supported by SUN.
    you can use any java ftp client available on google
    Regards,
    Michal Krawczyk

  • How to use payload from standard RFC MessageType in a RFC Lookup function

    Hello
    We have a DB sender to call an BAPI. The DB receiver gets the BAPI response.
    It is an easy scenario with one mapping.
    But the RFC Mapping Lookup is very awful. You have to rebuild all open and close tags to get the RFC payload. A lot of concat functions are a must. The error search in such a mapping is not easy and seems like EAI developing 1990 (Hand am Arm).
    Ok, it is better as a BPM, but it is not well for first level support person and release changes and trouble shooting.
    How can I use a XML payload from first mapping in my RFC Mapping lookup (second mapping)? There must be a way with two mappings and an easy RFC lookup.
    Currently (one mapping):
    DB sender format -> ( RFC lookup self-made RFC XML structure) DB receiver format
    My dream (two mappings):
    DB sender format -> RFC SAP XI standard Format ->(RFC lookup by using Payload from first mapping) DB receiver format
    I hope someone can help me with an example.
    Daniel

    Hi Daniel,
    If i understood correctly, urs is a 'Asynch' scenario JDBC to JDBC with a RFC lookup in Mapping.
    If its so, then i think wat u r expecting can be done. In Interface Mapping, u can add more than one message mappings.
    So first do a Mapping for DB sender format - RFC input standard format,
    then another one for RFC sender Format - RFC receiver format, (look up code goes in this mapping).
    Then third one from RFC receiver format to DB receiver format.
    The order n which u add in Interface Mapping is also important. This is a suggestion, i havent tried this, but still i think u can give it a try.
    Regards,
    P.Venkat

  • How to get Payload of SOAP Message in Advance Adapter Engine

    HI All,
    I am wondering if anybody can tell me how to view the Payload of SOAP Sender and Receiver Message in Advance Adapter Engine?
    Does Anybody know how to check mapping payload in Advance Adapter Engine because in ABAP you can see the mapping payload under Request Message Mapping but when you use AAE you can't see the Request Message Mapping Payload.
    I have a SOAP to RFC Scenario in which I can't see the SOAP Sender and RFC Receiver Mapping Payload.
    When I am sending incorrect data to an RFC I am getting this error which is very strange and new to me.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to split a synchronous message
    Any comments would be much appreciated.
    Thanks,
    Iqbal

    HI All,
    I have managed to find Michal's Blog which is talking about getting the mapping payload but unfortunately I don't know how to create Adapter Module so I am wondering if somebody can please provide me EAR file so that I will request the Basis guys to deploy the code and hopefully this will solve my query.
    Michal's Blog
    As you all probably know while using local Advanced Adapter Engine (AAE) processing in SAP PI 7.1 the message is logged only once (during processing by sender adapter). This is great in terms of performance but what if we need to check the mapping output? Is there a way do do it somehow? It turns out that we don't have such an option in standard yet. Is there any alternative then?
    It turns out there is - a simplest adapter module there is...
    Local AAE works in such a way that from the sender adapter it executes the receiver adapter so in the outbound message to PI processing you can see the adapter info logs of the receiver adapter and this is what we can use. The idea is to add an adapter module to the receiver adapter which will put the content of the message into the audit log of PI message processing. We can do it by writing a few lines of code:
    PI/XI: target message logging with local AAE not possible ? not anymore...
    *Please upload the file in any free site or <REMOVED BY MODERATOR>
    <READ RULES OF ENGAGEMENT>
    Thanks,
    Edited by: Prateek Raj Srivastava on Jan 6, 2012 9:10 PM

  • [Urgent]How to assign Payload in Payload Header.

    I am trying to enque data from a BPEL process into IP_OUT_QUEUE,I have already populated
    Msg ID
    From Party
    ToParty
    Doctype Revision
    Doctype
    Msg Type in Payload Header in the Header.
    My question is:
    How to populate the Payload in the Payload header?
    Is it necessary to populate Payload in Payload header.
    Entry in my B2B log:
    2006.10.13 at 06:54:05:515: Thread-18: B2B - (ERROR) Error -: AIP-51505: General Validation Error
         at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1670)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1132)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:710)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:821)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:532)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:345)
         at java.lang.Thread.run(Thread.java:534)
    2006.10.13 at 06:54:05:516: Thread-18: B2B - (ERROR) Error -: AIP-51505: General Validation Error
         at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1711)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1132)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:710)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:821)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:532)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:345)
         at java.lang.Thread.run(Thread.java:534)
    2006.10.13 at 06:54:05:516: Thread-18: B2B - (ERROR) Error -: AIP-51505: General Validation Error: Error -: AIP-51505: General Validation Error
         at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1711)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1132)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:710)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:821)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:532)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:345)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: Error -: AIP-51505: General Validation Error
         at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1670)
         ... 6 more
    Can any one point out source of this error....is it due to wrong mapping in the transformation activity of my BPEL process
    Message was edited by:
    Vargab

    Hello Vargab,
    Assuming you have payload to be sent to B2B application already available in the BPEL process( you can get it from either file, ftp..etc) , you may need to assign it to EnqueProcess Input Variable. Please find the following code snippet.
    Please do not copy the payload into any AQ header.
    <receive name="Read_PO" partnerLink="X12_4010_850_PO_Read"
    portType="ns1:Read_ptt" operation="Read"
    variable="Read_PO_Read_InputVariable" createInstance="yes"/>
    <assign name="Asign_APP_to_X12_4010_850_PO">
    <copy>
    <from variable="Read_PO_Read_InputVariable" part="Transaction-850"
    query="/ns3:Transaction-850"/>
    <to variable="Send_PO_Enqueue_InputVariable" part="Transaction-850"
    query="/ns3:Transaction-850"/>
    </copy>
    </assign>
    Hope this helps.
    Rgds,Ramesh

  • How to unzip a file in ssis

    Hi All,
    i have a requirement files are coming to ftp.But those files are Ziped.
    I want to unzip it and at last want to archive it to some other folder.
    Please suggest how it can be done through SSIS package.I am using sql server 2005.
    Thanks
    i_pr

    Here is a link that will be useful to you -
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b3989206-99e3-49dd-9c8a-1cd5de89cb5d/unzip-file-in-ssis-package?forum=sqlintegrationservices
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

Maybe you are looking for