Xml content in the body of the email

Hi... I am using JDev 10.1.3.4 . My requirement is to get xml content in the body of the email. please throw some light on this.

Hi
Thanks al for ur replies.
Actually my requirement is to send email with some xml data in the body (like failed records to show dat dese are all the records without necessary information).
@Eric,
Using ora:getContentAsString(XMLElement) i only received a blank email without any content. I even tried to write the xml content in a file and used ora:doc() . Even then the body of the email is blank. Dunno wat i am missing here.
@pavan4s
I am literally new to bpel. Can u please elaborate or send some links to use xsl in email body?
Edited by: friendsforever on Oct 11, 2010 2:35 AM
Edited by: friendsforever on Oct 11, 2010 2:36 AM

Similar Messages

  • I cannot access my Gmail content on the EMail app, I cannot access my Gmail content on the EMail app

    Hi, after updating this morning to Mavericks, I cannot access my Gmail content on the Email App. I am using Macbook Air. Thanks.

    same here.   Google is reporting too many connections.   My problem is that prior to the upgrade it was working "ok".   So its clearly a 10.9 issue

  • How to send smartform as email (smartform content in the email body)

    Hi,
    When I call my smartform, I want to send the smartform content as email. I am seeing one structure : MAIL_RECIPIENT.
    I have the mail id in my hand : xyz. However, based on this email id, how to populate the structure MAIL_RECIPIENT since it has Object ID, Object type and descrption. But No field for Email ID.
    Can any one help me out, in this.
    Thanks,
    Sandeep

    Hi,
    No not the PDF. The content it self should go as email.
    For that only we need to populate MAIL_RECIPIENT structure.
    But my doubt is how to populate this structure. It has no field for email ID.
    Thanks,
    Sandeep

  • I don't know what happened, all of a sudden, the content of here body of my email is not displayed. I can only see the preview lines. I must have inadvertently touched some thing, any idea what happened?

    I don't know what happened, the body of my email was not displayed any more. I must have unknowingly pressed something on my I Pad to cause this to happen ? I can read the preview lines ok, but not the mail itself, any idea how to fix this?

    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    Or...
    Double tap the home button to bring up the Recents List
    Tap and hold any icon until it wiggles
    Press the red to delete the Mail app
    Press the home twice button when done.

  • Displaying xml content in the browser

    Hi,
    In my application i am generating an XML content which i was storing into a file. Now as per the new requirement, this xml content needs to be displayed in the browser. (The way it gets displayed when we double click on an xml file).
    Can some one plz tel me how to do this? I am using the jsp/servlet architechture..? plz help
    Thanx

    Program 1
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SendXml extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get the 'file' parameter
        String fileName = (String) request.getParameter("file");
        if (fileName == null || fileName.equals(""))
          throw new ServletException(
              "Invalid or non-existent file parameter in SendXml servlet.");
        // add the .doc suffix if it doesn't already exist
        if (fileName.indexOf(".xml") == -1)
          fileName = fileName + ".xml";
        String xmlDir = getServletContext().getInitParameter("xml-dir");
        if (xmlDir == null || xmlDir.equals(""))
          throw new ServletException(
              "Invalid or non-existent xmlDir context-param.");
        ServletOutputStream stream = null;
        BufferedInputStream buf = null;
        try {
          stream = response.getOutputStream();
          File xml = new File(xmlDir + "/" + fileName);
          response.setContentType("text/xml");
          response.addHeader("Content-Disposition", "attachment; filename="
              + fileName);
          response.setContentLength((int) xml.length());
          FileInputStream input = new FileInputStream(xml);
          buf = new BufferedInputStream(input);
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            stream.write(readBytes);
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (stream != null)
            stream.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    Program 2
    import java.io.BufferedInputStream;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ResourceServlet extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        //get web.xml for display by a servlet
        String file = "/WEB-INF/web.xml";
        URL url = null;
        URLConnection urlConn = null;
        PrintWriter out = null;
        BufferedInputStream buf = null;
        try {
          out = response.getWriter();
          url = getServletContext().getResource(file);
          //set response header
          response.setContentType("text/xml");
          urlConn = url.openConnection();
          //establish connection with URL presenting web.xml
          urlConn.connect();
          buf = new BufferedInputStream(urlConn.getInputStream());
          int readBytes = 0;
          while ((readBytes = buf.read()) != -1)
            out.write(readBytes);
        } catch (MalformedURLException mue) {
          throw new ServletException(mue.getMessage());
        } catch (IOException ioe) {
          throw new ServletException(ioe.getMessage());
        } finally {
          if (out != null)
            out.close();
          if (buf != null)
            buf.close();
      public void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
        doGet(request, response);
    }Have fun

  • My email only shows the "to" and "from" info but not the content of the email. Please help. Thanks

    My email only shows the "to" and "from" info. There is no information at all in the body of my email messages. Please help. Thanks.

    Close the mail app and reboot the iPad.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the mail icon. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Why can't I print emails w/ iCal invites? (I simply want to print the contents of the email)

    Every time I receive an email in my apple mail app that has an iCal invite attached I cannot print the email out. I'm not trying to open the iCal, or print it. Simply wanting to print the conversation. Please help!

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • I cannot see content in the emails sent to me. How do I fix this?

    When I click on an email that I have received I then click on "show content" but it does not show the content. I believe it has something to do with security but not sure how to fix this.

    Security yes... Thunderbird no. You will find most likely that your anti virus / security suite is blocking Thunderbird from getting the remote images.

  • Displaying XML content in the browser without creating the XML file

    Hi,
    In my web application, i am getting the data from the database and generating an XML file based on that. This file is created, read and its content is displayed in the browser when the user clicks a specific link on the jsp.
    As per the new requirement, i am not supposed to generate the XML file. Instead when the user clicks on the specific link on the jsp, the XML should get displayed in the browser directly without generating the XML file.
    Can someone plz help me in how to do this?
    Moreover, this XML generation application should support multiple clients. Do i need to make my application thread-safe explicitly even though i am using a servlet to do this?
    Please suggest
    Thanx

    Avoid multi post
    http://forum.java.sun.com/thread.jspa?messageID=9858529

  • When I receive an email the content of the email is from an email from another sender.

    If I receive an email from Old Navy and I receive an email from a friend or someone else, the old navy content appears under the friends message and under the old navy message. Why does this happen? It happens when I receive from stores like old navy, Lands End etc

    Try to rebuild the index file of the troubled folder.
    Right-click the folder - Properties - Repair Folder

  • Trying to send email with contents in the body of the message

    Hi,
    Has anyone been successful in modifying the RW_EMAIL_NOTIFICATION script in such a way that allows the contents of the email "body" to be sent as a parameter from a calling script? Thanks.
    Regards,
    David Carr

    David,
    Here is the solution I use which hopefully will suit your requirements and is a little more elegant than the workarounds for using rwmail.  Oracle has the ability to send SMTP emails once you enable the UTL_SMTP package. 
    Log in to Oracle as the SYS user and run the Oracle supplied script to create the UTL_SMTP package - utlsmtp.sql in the Oracle rdbms/admin directory.
    Now create a procedure that you can call subsequently in your scripts to send emails using the UTL_SMTP package.  I created this script under the SYSJCS schema as I'm only going to call it from there, but you could create it as SYS and then create a public synonym for it.
    I called my procedure send_mail (see below).  The enabling of the UTL_SMTP and the creation of the send_mail procedures are one-offs and don't have to be repeated (unless you want to change something about send_mail).  Just change the name of the mailhost in the procedure to one appropriate for your  company.
    NB: I have had to substitute the "at symbol" with *at* otherwise the forum wouldn't accept the post.
    CREATE OR REPLACE PROCEDURE send_mail (
    pSender    VARCHAR2,
    pRecipient VARCHAR2,
    pSubject   VARCHAR2,
    pMessage   VARCHAR2) IS
    mailhost  CONSTANT VARCHAR2(30) := 'yoursmtpcapable.mailserver.corp';
    crlf      CONSTANT VARCHAR2(2):= CHR(13) || CHR(10);
    mesg      VARCHAR2(1000);
    mail_conn utl_smtp.connection;
    BEGIN
       mail_conn := utl_smtp.open_connection(mailhost, 25);
       mesg := 'Date: ' ||
            TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss') || crlf ||
               'From: <'|| pSender ||'>' || crlf ||
               'Subject: '|| pSubject || crlf ||
               'To: '||pRecipient || crlf || '' || crlf || pMessage;
       utl_smtp.helo(mail_conn, mailhost);
       utl_smtp.mail(mail_conn, pSender);
       utl_smtp.rcpt(mail_conn, pRecipient);
       utl_smtp.data(mail_conn, mesg);
       utl_smtp.quit(mail_conn);
    END send_mail;
    Now you can call the send_mail procedure with, e.g.
    send_mail(pSender=>'redwood**at**mycompany.com',pRecipient=>'basisteam**at**mycompany.com',pSubject=>'Alert: Redwood job failure',pMessage=>'There has been a job failure that should be addressed a.s.a.p.');
    Here is a practical application of this email facility.  I created a trigger for ON_JOB_STATUS_CHANGE called _ERROR and here is the code that is executed.  We store contact details for business users that need to be notified of a job failure in the Comment field of the script definition, so for a failed job we grab that info and email it to a power user dlist which includes 24/7 Ops that will call-out the contacts specified.
    Any Comment field that starts with the text CRITICAL_JOB results in an email to the Ops that will perform the call-out, otherwise the email goes to a less critical dlist.
    procedure SYSJCS.ON_JOB_STATUS_CHANGE_ERROR (
      p_job_id     in integer
    , p_old_status in varchar2
    , p_new_status in varchar2
    is   
        v_script       varchar2(30);                                   
        v_step_id      varchar2(9);
        v_description  VARCHAR2(80);
        v_comment_text VARCHAR2(4000);
    begin
        if p_new_status in ('E', 'O') -- Error or Console
        then
            select script_name, decode(step_id, null,'JOB/CHAIN','STEP')
            into v_script, v_step_id
            from jcs_jobs
            where job_id = p_job_id;                              
            select description, comment_text
            into v_description, v_comment_text     
            from jcs_scripts
            where name = v_script;                              
            if ( SUBSTR(v_comment_text,1,12) = 'CRITICAL_JOB' )
            then    
               send_mail(pSender=>'redwood**at**mycompany.com',
                         pRecipient=>'criticaljobalerts**at**mycompany.com',
                         pSubject=>'CRITICAL ALERT: Job failure in '||v_script||' ('||p_job_id||')',
                         pMessage=>'Job Description: '||v_description||chr(13)||chr(13)||'Operations Team please ensure you contact one of the following people via telephone a.s.a.p.'||chr(13)||chr(13)||'Comments: '||chr(13)||v_comment_text);
            else
               send_mail(pSender=>'redwood**at**mycompany.com',
                         pRecipient=>'basisteam**at**mycompany.com',
                         pSubject=>'Alert: Job failure in '||v_script||' ('||p_job_id||')',
                         pMessage=>'Job Description: '||v_description||chr(13)||'Comments: '||chr(13)||v_comment_text);
            end if;
        end if;
    end;
    Hope this was useful.
    Regards
    Guy

  • Chinese Characters in Body of the Email when sending attachments.

    I have google and exchange accounts connected to mac mail. Whenever I send an attachments through the exchange account via mac mail, the recipient receives the attachment however is filled with Chinese characters in the body of the email that look like this (⁥敧敮慲整⁤祢䔠捸慬浩牥吠浥汰瑡⁥摅瑩牯漠㘰ㄺ㨶㈳䘠楲慤ⱹ㤠䨠湡慵祲㈠㄰‵ⴭാ㰊呓䱙⁅祴数琽硥⽴獣㹳⹐慥捥㌱㙥〭㉢ⵤ㐴㜳㠭㐸ⴴ散㜸挴㌳㌳㑢笠਍䴉剁䥇㩎〠浣〠浣 〠瑰਍ൽ䰊⹉慥捥㌱㙥〭㉢ⵤ㐴㜳㠭㐸ⴴ散㜸) and goes on for 10-15 lines even when there is no content in the email.
    The OSX that I am running is Yosemite Version 10.10. Does anyone have a resolution to this problem? Thanks

    It looks like bogus chinese created when a message encoded as utf-8 is read as if it were encoded as utf-16.
    See if the people who run the exchange server can help, if that is the only account where this happens.  Such systems often botch encodings.  I don't know of anything you could do at your end beyond playing with the Windows Friendly attachment setting in Mail.

  • XML: import only the body element...

    I need import only the body element...
    var myXMLFile=File.openDialog("Choose XML.......");
    myDoc.importXML(File(myXMLFile.body));
    But not work...!!!
    It this possible?

    It this possible?
    Not like that!
    What you've written doesn't make much sense:
    var myXMLFile=File.openDialog("Choose XML.......");
    myDoc.importXML(File(myXMLFile.body));
    In this code, myXMLFile is a File object. File objects do not have .body properties, so myXMLFile.body is not valid.
    And even if a File object did have a .body property, it would presumably be some sort of XML content inside the File. But the File() constructor takes a string argument that is a filename. So File(myXMLFile.body) wouldn't work either!
    I think you should take a step back and make sure you understand the basics before you try to put them together like this.
    Since the importXML() method only takes a file, a solution is to read the XML file, pull out the <body/> element, write it to another file,and then call importXML() on the new file.
    Alternatively, you can create an XSLT transformation and set doc.XMLImportPreferences to mandate its use. If you're not familiar with XSLT, learning it may not be appropraite for this task.
    But perhaps your requirements are overly restrictive -- why can't you import the whole file and then only instruct InDesign to deal with the body element?

  • I am having problems with mail after upgrading to snow leopard. When I send an email to somebody, I would get a reply from them but the content of the reply were old emails from months ago. Any ideas what's going on?

    For ex. The subject of my email was "List of kids dancing this weekend". Then i would compose my email and send it to the recepient. They responded to my email with the same subject "List of kids dancing this weekend" but the content of the email was the email I received from somebody else months ago. This "phenomenon" happened serveral times already. Please help!

    Check this post out
    http://hints.macworld.com/article.php?story=20110516152604993
    Turns out the auto-complete database is a SQLite DB stored in this folder.  Probably the ownership and/or permissions are messed up on your system.  Mine (under Snow Leopard) show  ownership by me and rw privilege for all files in that directory, including MailRecents....

  • How to send an Email with content at the end of a Quiz?

    Hello,
    i have three Questions about the navigation function "sending an Email" at the end of an Test or Quiz, and i haven´t found any answers in the forum yet.
    An Information at the beginning:
    I want to use the Test without any other System, for example Moodle. It will be directly reachable with a link on a homepage.
    1) Is it possible, to send an Email with answers of the User as the content in the email, and if it´s possible, how?
    2) If it´s not possible, could i precast a Text in the email? Until now, there is only an empty Outlook-Window with the Emailadress.
    3) Is it possible, to send an Email without Outlook, so a User can use it only web-based, for example with gmx, webmail etc...
    Thank you for helping me
    Zholmar
    (German)
    Hallo,
    ich habe drei Fragen zum Versand im Rahmen der Navigationsfunktion von "Email versenden", dies soll am Ende von Test bzw. Quizanwendungen geschehen und habe im Forum leider keine entsprechende Antwort bisher gefunden.
    Zur Information:
    Der Test soll nicht in ein anderes System (z.B. Moodle) eingebettet werden, sondern lediglich per Link auf einer Homepage erreichbar sein.
    1) Ich würde gerne am Ende meines Tests eine Email versenden lassen, welche die Antworten des vorangegangenen Tests enthält, ist das möglich und wenn ja wie?
    2) Falls das nicht möglich ist, besteht die Möglichkeit, einen vorgefertigten Text + Betreff in der Email zu generieren? Derzeit öffnet sich lediglich ein Outlook Fenster bei erreichen der Folie, in welcher lediglich die angegebene Emailadresse eingetragen ist. In dieser Email soll wenn möglichst bereits ein Text integriert sein, so dass der Teilnehmer lediglich noch Angaben ergänzen muss.
    3) Ist der Email Versand auch ohne Outlook möglich? Kann die Funktion also auch rein Webbasiert erfolgen?
    Vielen Dank für die Hilfe
    Zholmar

    Sooo, which method are you wanting to use?
    Earlier I outlined the steps for the close project at end.
    If you are wanting to use the JavaScript solution, you insert a button. Then in the action, you tell the button to execute JavaScript. Then you click the Script Window button and enter the window.close(); code.
    Cheers... Rick

Maybe you are looking for