XML Payload with attachment idoc to rnif

Hi Experts,
I am doing the scenario Idoc to RNIF. i have to pick up some1234 .pdf , fieldticket.pdf files and attached to the xml payload of out put and send it to the customers. How can we do this. please any one help me. If you have any documents please send me.

Anyone working/worked with RNIF adapter would like to share their experience.

Similar Messages

  • Has anyone used an XML payload with AQ on 9i?

    No problems with Raw types but can't find any examples of sending and XML doc as the payload. Getting the following error from the snippet I have included.
    oracle.AQ.AQException: JMS-195: Invalid object type: object must implement CustomDatum/ORAData or SQLData interface
    The queue payload is defined as an XMLType.
    /* Creating a message to contain raw payload: */
    message = queue.createMessage();
    /* Get handle to the ObjectPayload object and populate it with data: */
    Document doc = DOMBuilder.buildIt();
    obj_payload = message.getObjectPayload();
    obj_payload.setPayloadData(doc);
    /* Creating a AQEnqueueOption object with default options: */
    enq_option = new AQEnqueueOption();
    /* Enqueue the message: */
    queue.enqueue(enq_option, message);
    System.out.println("Successful enqueue");

    Which version are you using? I also had problems with XML as the payload with 9i Rel. 1. I upgraded to Rel. 2 and it works o.k.

  • Unable to get XML payload with new JDBC interface

    Hello - I have hit a wall in trying to use the new JDBC dequeue interface. I can get an Oracle connection and get a message with the following code:
    OracleConnection connection = (OracleConnection) getConnection();
    AQDequeueOptions deqopt = new AQDequeueOptions();
    AQMessage msg = null;
    deqopt.setWait(queueWaitTime);     
    String queueName = "TEST_SCHEMA.TEST_QUEUE";
    msg = connection.dequeue(queueName, deqopt, "SYS.XMLTYPE");
    But I have found no way to turn this into an XMLType (or even an xml string). In looking at it in the debugger I have found that the only variable set internally on the payload is the byte [] returned by getPayload(). However, I cannot figure out how to turn this into an XMLType. I checked the Oracle documentation and they only discuss sending / receiving RAW message types.
    Any help is greatly appreciated.

    Hi,
    Can you post your control file here...
    I am working on similar thing but not getting it working..getting error like
    [070110_022931827][][EXCEPTION] The URL ( xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true ) is invalid.
    My translation file name is "XXXPOXPRPOL_fr_CA.xlf"
    in my control file i have tried following codes but it didnt work
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL_fr_CA.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL_fr_CA.xlf.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    Please let me know where problem is.
    Thks & Rgds
    Rajesh

  • Xml file with Attachment-- File Adapter

    HI, I have a zip file which has an XML and a corresponding pdf file, with these files I need to create a target xml structure which is the original XML+ Additional tag containing the <bas64> of the pdf. I intend to write a module which could parse the xml and also convert the pdf to base64 into one single xml, do you guys think this is achievable, any other suggestions would be of much help.
    Thanks

    > I intend to write a module which could parse the xml and also convert the pdf to base64 into one single xml, do you guys think this is achievable,...
    Yes, this is the best way. In PI 7.1 you can also do this with a Java mapping.

  • Mail with attachment; dynamic receiver

    Hi everybody,
    we are sending a mail with attachment though mail adapter.
    In Micosoft Exchange the mail is received correct und the attachment is displayed.
    We got also a signature server.
    There the attachment is not regocnized.
    Any ideas.
    Is MS Exchange more error toleranting that onther mail servers?
    Any ideas are appreciated
    Regards Mario

    Hi,
    1) XML payload as attachment (with dynamic name)
    2) recipient (recipient email id is part of input xml payload, but not part of the mapped XML payload)
    These two is possible by using Mail Package. You have a standard xsd for mail package which you can download from the SAP Note 748024.
    The xml created in you java mapping which will be your attachment should be put into the <content> tag of the mail package xml structure. and the file name can be set in the <Content_Type> tag.
    <?xml version="1.0"; encoding="UTF-8"?>
    <p2:Mail xmlns:p2="http://sap.com/xi/XI/Mail/30">
    <Subject>My Invoice</Subject>
    <From>from email address<;/From>
    <To>to email address</To>
    <Content_Type>text/plain;name="MyFile.csv";</Content_Type>  --> file name here
    <Content>123;A49;aaa</Content>   -> attachment xml here
    </p2:Mail>
    And you have to select MailPackage in the receiver mail adapter.
    Regards,
    Aravind

  • Idoc to RNIF with pdf attachment

    Hi
    I am implementing a Idoc to RNIF with pdf attachment. I have to pick the pdf file from an ftp server in PI based on the invoice number in the idoc. I could not find a blog or documentation on how to attach the pdf file. The only viable solution I found is to create a module in this forum [Re: Using attachment with RNIF|Re: Using attachment with RNIF] Has anybody implemented this in any other way? Also, in this solution its not clear how both the messages and pdf file are reaching the rnif adapter together.
    Can somebody give a step by step solution?
    I am on PI 7.1 Ehp1
    Thanks in advance
    Asif

    Anyone working/worked with RNIF adapter would like to share their experience.

  • IDoc to Mail (with attachment) scenario

    Hello,
    I have a simple IDoc to Mail scenario. The payload is send as mail attachment.
    The IDoc is mapped to a structure representing the attachment-file format.
    The <b>mail adapter</b> is set up as follows:
    Transport-Protocol: SMPT
    Message-Protocol: XIALL
    <i>Use Adapter-Specific Message Attributes</i> and <i>Variable Transport Binding</i> are checked.
    I also use Modul <i>StrictXml2PlainBean</i> to convert the Payload into FlatFile-Format.
    And I use the Modul <i>MessageTransformBean</i> to set up the Payload as attachment and to set up the name of the attachment. I use these parameters:
    Transform.ContentDisposition = attachment;filename=test.txt
    Transform.ContentType        = text/plain
    The result is an Email with two files as attachment.
    The first file contains the payload in FlatFile-Format as expected, but there is also a second file (XML-Format) with information about the message.
    Now:
    1. How can I get rid of the XML-File?  I dont need it and it doesn't help the receiver of the Email, its just confusing.
    2. How can I set up a dynamic name for the attachment from the paylaod ?
    Thanks for your help.
    Elko

    HI,
    I think your problem is solved.
    Refer the weblog which does the same thing.
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    I hope this is what you want.
    Thnx
    Chirag Gohil

  • SSL/TLS security certificate data match with XML Payload in SAP PI

    Hi,
    We are working on a solution where we would want to use SSL/TLS or WS Security with client server mutual authentication using client server certificates.
    But, once the sender is authenticated using the certificates, can the XML payload be matched for the correctness with the certificate information? Is this available to PI integration engine at any time? Like Sender A autheticated as A using certificates, must be stopped if his XML payload is saying that he is sender B (which is most unlikely if we trust the senders but did not want to leave a loophole).
    Any ideas here?
    Thanks and Regards,
    Vijay

    Hi Wolfgang,
    Cross-posting is discouraged and against the forum rules, because it is misused and makes a mess of the search due to distributed discussions and answers.
    I will move it to the PI forum and add a watch on it as it is security forum related.
    Unfortunately, the forum software does not have the option to "mirror" threads.
    Cheers,
    Julius
    Edited by: Julius Bussche on Sep 14, 2009 9:50 PM

  • XML file with an attached MIME encoded ZIP file

    Hi all,
    I'm new to SAP WAS and MIME encoding/decoding, and I'm trying to generate an XML file with an attachment which is also MIME encoded.
    1) I have dummy files (1.jpg, 2.jpg) and I'm trying to zip these files into one zip file (files.zip).
    2) I'm trying to MIME encode/decode this zip file.
    3) I'm trying to attach this MIME encoded zip file to existing XML file.
    Which FMs could I use to accomplish this?  Your help is very appreciated.
    Thank you.
    below is a file example that I'm trying to generate.
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
         boundary="--XXXXboundary text"
    Content-Transfer-Encoding: 7bit
    This is a multi-part message in MIME format.
    --XXXXboundary text
    Content-Type: text/xml;
         charset="utf-8"
    Content-Transfer-Encoding: 8bit
    <?xml version="1.0" encoding="utf-8"?>
    <abc/>
    <def/>
    --XXXXboundary text
    Content-Type: application/octet-stream;       name="files.zip"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment
    UEsDBBQAAAAIAI9EejAs5k34H84DAAYgBAAMAAAAMDAyMjQ5MTEucGRmnLsJWBNJ2zb6jmJIIIFE
    BAMIJGEVBSKGRRAhEGQNoGwKYoiAEnYRUFGIkBAQFzYXRNHAAEGQZRy2ATFDUAHfGScSIUwQMMrM
    ECGADptA0n/jzLtc//dd51znVAKdru6uqn7q6fu5764qQz

    Just create an applet (extend JApplet)... add a JTextArea to it....fill the text area with the text from an XML doc.
    To get the text of the XML doc just do something like..
    File xmlFile = new File("<path to xml file>");
    FileInputStream fis = new FileInputStream(xmlFile);
    byte[] bytes = new byte[(int) xmlFile.length()];
    fis.read(bytes);
    fis.close();
    String xmlText = new String(xmlBytes);
    textArea.setText(xmlText);
    ...try something like that (assuming..i understand what it is u want)

  • XML BLOB to SOAP with attachment

    Is it possible to receive in XI an asyc. message with BLOB information in an XML tag
    and transform it to SOAP message with attachment?

    >how to convert the BLOB to the pdf\jpg\tiff file attachment in the SOAP?
    refer this link for sample.. If you are not java programmer take help from java experts. Basically you have to use jdbc java classes to retrieve and convert the display into image.
    http://www.techlabs4u.com/2011/10/reading-blob-data-in-db2-using-java-how.html
    For soap attachment refer payloadswapbean module. Refer sdn forum related to this.... also see this help [link|http://help.sap.com/saphelp_nw73/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm]

  • AIA 11gR1 Mail Message with an XML payload

    Hi,
    I'm currently facing an issue related to message payload which is itself a XML fragment.
    Use case: The business requires some error out record to notify to the Business users as an XML payload in the mail message body whichis generated in the process flow.
    Reported Issue: The default MIME TYPE with text/html is unable to send the XML payload in body part. I get a blank message body in the mail.
    Any useful thoughts is welcome.
    Regards
    Soumya

    Which version are you using? I also had problems with XML as the payload with 9i Rel. 1. I upgraded to Rel. 2 and it works o.k.

  • Incoming Image file with XML payload processing

    Hi,
    We have PI 7.1 and the interface is from file to standard RFC scenario with ABAP proxy in ECC.
    2 incoming files need to be processed by the interface - xml file with transaction details and the corresponding Image file.
    These files have to be mapped to the standard RFC and then pushed into ECC.
    Can the Java mapping be used in message mapping to pass the image file in the RFC as I do not want to use the Java module?
    If yes, can someone please help with the code and the mapping aspects?
    Regards,

    Abhishek,
    Though I never worked with server proxy with attachments,
    In my opinio, when it is possible to send attachments from outbound ABAP proxy,  then logically it should be possible to read attachments in the inbound proxies.
    I just saw this link in forum,
    [Re: Inbound proxy with attachments.|Re: Inbound proxy with attachments.]
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Apr 8, 2010 5:25 PM

  • XI Mail Adapter: sending emails with attachment with help of java mapping

    Hi ,
    On trying out the scenerio mentioned in the blog, using the java mapping provided
    "XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    The scenerio works just fine.
    But the payload as the content of the attachment is not getting generated in proper XML format.
    I suppose it's because of the replace special characters code part..
    Can anyone help me state the modification required in the code.
    Thanks!
    Regards,
    Faria Mithani

    It might be a codepage issue. Is your original payload UTF-8?

  • 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

  • Sending XML file as attachment in E-mail

    Hi,
    I'm facing a problem with sending e-mails with an XML-file as attachment. Scenario is as follows:
    - I collect the payload from XI with FM 'SXMB_READ_MESSAGE_VERSION_RAW'.
    - This payload is in the form of an xstring.
    - I convert this xstring to binary content by using FM 'SCMS_XSTRING_TO_BINARY'.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = lv_buffer
      * APPEND_TO_TABLE       = ' '
      IMPORTING
        output_length         = lv_i
      TABLES
        binary_tab            = lt_conhex.
    The itab lt_conhex is of type solix_tab.This is used finally to send the mail via class CL_BCS following normal procedures. Now when I open the e-mail with attachments I get the error that in the last line of my xml-file some squares are placed, which causes the document to open incorrectly.  When I delete the squares via e.g. notepad and open my xml-file again in my internet browser, it opens correctly.
    If I look at the contents of the solix_tab I see that the last line of the hexadecimal values are zero's, probably causing the XML file to be attached/oopened incorrectly. Is there any way to replace these zero's with some hexadecimal value in order to display my XML-file correctly?
    Kind regards!

    Thanks Sandra,
    Overlooked that parameter. Indeed if you take the XSTRLEN of the document and place this in the method for creating the attachment it works fine.
    CALL METHOD lo_email->add_attachment
      EXPORTING
        i_attachment_type      = ls_email-type
        i_attachment_subject   = ls_email-subject
        i_att_content_hex      = ls_email-content_hex
        i_attachment_size      = ls_email-content_length.
    By the way...if you're dealing with PDF documents this documentlength doesn't matter.

Maybe you are looking for

  • If I by aperture at the App Store for $80, how many computers can I install it on??

    If I by aperture at the App Store for $80, how many computers can I install it on??

  • Objective Setting and Appraisals in Portal

    Good Morning, I have that implement the component Objective Setting and Appraisals in the portal. I want know that report standard can display in the portal for this component and the functionality standard of this module in the portal for the employ

  • Question about permissions

    I have 2 users in a computer that mounts a directory from a server via nfs. That directory is used to share files between users. When a user creates a file in that directory the permissions are rw-r--r-- (the default umask 022). Since it is a shared

  • ORA-01000 maximum open cursors exceeded - help!

    Hi, I need some help with resolving ORA-01000 maximum cursors exceeded issue.I know this issue has been discussed before. I know this is caused because of not closing the resultset and statement, connection objects at the right place. Can anyone guid

  • Table AFRU, Transaction CO11N, confirmation not released?

    Hi Gurus, this question is regarding confirmation numbers (AFRU or other tables) and transaction CO11N. can you help me in with problem (Test condition)? Send notifications of not released orders. my question is how? what table? field? transaction? a