Email attachment in BPEL

Hi,
I am working on Oracle BPEL 11g.I want to send an email with an attachments of pdf files.But the problem is i am getting mail on the email server but the email doesn't contains any attachments..its just the mail which gets delievered to the "To" address.
Please help me out its very urgent.I need to send an email with pdf files as attachments so is there any link or tutorial which can follow to sucessfully do the task.
i have also completed the SendEmailWithAttachments.jws tutorial but its not working.Anyone who has completed the email with attachments please forward me the steps to do so will be very helpful
Thanks in advence
Irfan
Edited by: Irfan Shaikh on Jan 18, 2012 4:13 PM

Hi,
I want to send an .pdf file by adding an attachment in the email activity in BPEL..SO please if you can send me the step step procedure to do this will be helpful.This is what the exception i am getting
<exception class="java.lang.NullPointerException">messsage cannot be null
<stack>
There are many other lines in this exception
</stack>
</exception>
Tnahks & Regards
Irfan
Edited by: Irfan Shaikh on Jan 24, 2012 7:23 PM

Similar Messages

  • Receive email and read email attachment via BPEL

    Hi All,
         Does anyone know how to or has a module on receiving email and read email attachment via BPEL.
         Im now reading and exploring UMS adapter as this activity can handle both reading email and email attachment.
         Your response/s will be very much appreciated. Thanks.

    943363 wrote:
    Hello,
    I have an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bits on an AIX 5.3 mainframe without the enterprise web interface.
    I would like to do that process :
    a daily email is sent to the oracle instance with a CSV in attachment.
    I would like that attachment in a directory configured onto the instance.
    I have a PL/SQL procedure triggered by a job that will insert the content of the CSV in a table.
    Is that process possible with what I have ?
    Thanks in advance,
    Best Regards,
    Grégory B.Databases don't receive email. Just sftp the file and schedule a job to process it.

  • Process Email Attachment in Bpel and then Check-In the Document to WCC

    Hello Techies,
    I am new to Soa Application and  Bpel. I am creating a Soa Composite application(using Jdev 11.1.1.6)  which will poll for incoming Email.
    This polling is done using the UMS adapter which is working fine for me. Then i have to process the Attachment and call a service to Check-In this Attachment(a pdf File) to UCM.I have Configured the WebService activity also and included the CheckIn Wsdl to perform CheckIn operation.
    The problem lies in processing the attachment by creating a BPEL process  and then passing this attachment to Primary File parameter  of CheckIn Service.
    How can I map this Attachment to primaryFile parameter of the CheckIn service ? (I am hard coding other parameters of ChecKin Service)
    Please Help.
    Thanks In Advance

    Hi Sunil,
    Currently I dont think there is a direct way that BPEL can consume and read the contents of a XL File.
    As per current version of Oracle SOA Suite (11.1.1.6.3),
    The Oracle File and FTP Adapters can read and write the following file formats and use the adapter translator component at both design time and run time:
    •XML (both XSD- and DTD-based)
    •Delimited
    •Fixed positional
    •Binary data
    •COBOL Copybook data
    The Oracle File and FTP Adapters can also treat file contents as an opaque object and pass the contents in their original format (without performing translation). The opaque option handles binary data such as JPGs and GIFs, whose structure cannot be captured in an XSD or data you do not want to have translated.
    But you can only do work around as mentioned in the below thread:
    How to read Excel file in BPEL
    Thanks,
    Deepak.

  • BPEL not initiating with Email attachment

    Hi all,
    I am trying to initiate a bpel process based on email by following the link below:
    http://blogs.bpel-people.com/2007/01/using-email-to-initiate-bpel-process.html
    I have succeeded in initiating the bpel process with email, following this link.
    But my problem is that, whenever I am sending email with attachment, my BPEL process is not initiating.
    My BPEL process is initiating only when the email is received in the inbox without attachment.
    The attachment which I am sending is very small in size, like 500 bytes.
    For this, I also tried increasing the heartbeatinterval to 240 in bpel.xml activation agent code, but no luck.
    I dont have any clues about what is happening.
    Any solutions?
    I am using :
    Jdeveloper 10.1.3.3
    SOA Suite 10.1.3.3
    Please help me out.
    Thanks in advance,
    Abhishek.

    hi,
    Any updates on this?
    Thanks in advance,
    Abhishek

  • How to send html email notification in bpel

    hi gurus,
    i want to send html email notification from bpel.
    before, i already successful send html email with attachment, but when i send an email without attachment, then the body message will turn into a plain text.
    as i check from the email accepted, email with attachment will have a mime type "text/html" but if no attachment then it will be "text/plain"
    from the bpel configuration, by default the mime type already set to "text/html; charset=UTF-8", below is the sample configuration in my bpel process
    [quote]
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:MimeType</query>
                                    </to>
                                </copy>
    [/quote]
    i think this suppose to be a easy configuration, but i'm not sure whether i miss something in configuration the email process or this is a bugs in bpel.
    environment:
    linux
    jdev 11.1.1.6
    do u guys ever facing a same problem or have a solution to this ? please throw some light.
    thanks
    ===
    update, i found a temporary solutions.
    so i add a attachment from the process design, and then i change it from the source.
    [quote]
    <copy>
                                    <from>
                                        <literal>
                                            <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/alternative</MimeType>
                                                <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                        <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                            <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                        </BodyPart>                                            
                                                    </MultiPart>
                                                </ContentBody>
                                            </Content>
                                        </literal>
                                    </from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content</query>
                                    </to>
                                </copy>
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:MimeType</query>
                                    </to>
                                </copy>
                                <copy>
                                    <from>string('your message')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:ContentBody</query>
                                    </to>
                                </copy>
    [/quote]
    make sure you put the mime type multipart/alternative into the email payload content. by default, when you add attachment, it will generate mime type multipart mixed automatically.
    if you don't change it to multipart/alternative, your email will show a attachment, but actually your email doesn't contain any attachment.
    and then for the message and mimetype make sure you have that ns10:bodypart, because this email already been set as a multipart email.
    when you add attachment, by default it will generate 2 body part, first one is for the body message and the second one is for the attachment. since i only want to use the body message only, then i have to erase the second bodypart
    with this workaround, i can send a html email without attachment perfectly.
    but i have to take note, when i updating the email process from process design, then the source will be generated again automatically, and the edited one will be replaced.
    thanks.

    Make sure you upload all of the images used in your email to a server you control. Then, change your image paths to point to those uploaded images with absolute links.
    You will get marked as spam if you attempt to send images as attachments to a large list of recipients and most email clients won't download images to begin with, so make sure your html email makes sense with broken pictures.
    CSS support is spotty across email clients, if you use css, make sure it's inline, not embedded in the <head> or externally linked in the <head>. Some email clients strip out the <head> section entirely.
    Basically, you need to design your html email as if you haven't moved out of the 90's yet, as far as web design is concerned, in order to get maximum cross client compatibility.
    Then, when you're ready, I would suggest using a service like www.icontact.com or www.constantcontact.com if your subscriber list is anywhere over 100 or so recipients.

  • Processing email attahcment in bpel

    Hi,
    I have a requirement to parse xsl file.
    I am using UMS adapter to listen for email messages.
    If email has an attachment ( xls ), then I need to parse it.
    I'm getting atthachment @href and with getAttachmentContent assign value to bpel variable.
    How to parse file content? I am using Apache POI library using java embeed activity , but without sucesss.
    Errors I received :  Your InputStream was neither an OLE2 stream, nor an OOXML stream or Invalid block type.
    I am not sure - it is problem with library or incorect approach in bpel?
    Is there a way to validate received file integrity when it is asigned to bpel string variable?
    best regards and sorry for my english.
    ronnixw.

    <copy> 
      <from expression="ora:getAttachmentContent('input','bin')"/>
      <to variable="initiateTaskInput" part="payload"
      query="/taskservice:initiateTask/task:task/task:attachment/task:content"/>
    </copy>
    Above will copy the Attachment content which has its HREF stored in "input/bin" variable to "content" variable in base64 encoded form.
    Now you can view the attachment in BPEL flow trace and parse it using BPEL Assign/XSLT.

  • Getting encoded Email attachment!!!!

    Hi Frds,
    I am sending a notification through email. Its the same SendEmailWith Attachments example. The samplecover.pdf file is shown properly in email attachment , but when I wanna read .txt/.doc/.rtf file its showing some encoding.
    I am using mime type for the attachment as
    "string('text/html; charset=UTF-8'
    Any pointers so that I could get my email attachment show proper message instead of encoding. Thanks to all

    I don't see the function under Advanced Functions. I looked through all the other function lists and I still don't see doTranslateToNative() anywhere. When I try to use the function anyway, I get an error when I try to deploy the BPEL process. The error message says the function is not registered, make sure the function is registered in xpath-functions.xml file located under domain config directory and make sure that function prefix is mapped to correct namespace in <process> activity.
    I looked in the xpath-functions.xml file and I don't see any functions listed in there. I'm not sure why the error message says the function needs to be listed in this file because other xpath functions are available for use in the BPEL process and they aren't listed in the file.
    Is there another solution besides using doTranslateNative()?

  • I have files that have been on my computer for over a year and all of a sudden they wont open and an error message comes up saying they were improperly downloaded or came in an email attach which is not the case

    I have files that have been on my computer for over a year and I have used them several times and all of a sudden they wont open.  I received an error message saying they are improperly downloaded or came as an email attachement which is not the case.  Please advise

    They seem to be word files - they will open if I choose "open with" microsoft word, but if I double click they don't open they are appearing as PDF on my screen.  I even opened one and then tried to "save as" making sure I chose .doc and they still appear as PDF
    I just created a new document response.doc in word and when I saved to my desktop it appears as a PDF file and I absolutely did not create a PDF or save as PDF it was a simple word
    doc.
    The message says "Adobe reader could not open response.doc because it is either not a supported file type or because the file has been damaged (for example attached in an email and not properly decoded)
    The reader version is I believe the most current, I always update when prompted.  OS is Windows 8

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • I bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent !

    i bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent ! ( even if you wrote a worng ID like ( asdasdasd ) it will say sent !! how come and now am trying to know or need a hint on that email so my freind could try to remember it !
    to those who will think that this phone is stolen , no its not and i would love to go to apple store if there is 1 in jordan so they can help us ,
    i have everything with this iphone the box the catalog its serial number , everything but the ID and the (and apple ID is everything as you know)
    so please if anyone have any suggestion to help me , and even apple it self if the can help me to get a support from them cause i tried everything to contact them by mail or any other option since as i said there is no apple store in jordan

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

  • HT5275 When I download an attachment, it doesn't open in a new window.  It goes to my finder, but I must click on an email attachment at least 3 times in order to find it there.  Is there a way to change the preferences to simply open attachment in a new

    When I download an attachment, it doesn't open in a new window.  It goes to my finder, but I must click on an email attachment at least 3 times in order to find it there.  Is there a way to change the preferences to simply open attachment in a new window?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • I have an email attachment that I would like to be able to access when NOTconnected.  I found one suggestion that I should open the attachemtn iniBooks and save it there.  Unfortunately, I have no idea how to do that.

    I am trying to store an email attachment (an Excel spreadsheet) somewhere on my iPhone 5 to be able to access it easily in the future.  I do not need the ability to work on it, just to access it, although it would be convenient if i could load updated versions over it on a regular basis.  The spreadsheet was created in Excel on a laptop with Win 7.  I read one posting that said I should save the document to iBooks and then could open it whenever I wanted.  The same posting refered to something in the upper right corner of the attachment that enabled me to save it to iBooks.  Unfortunately, there is no such option showing when I looked at the file, which I did email to myself.  I was able to open the attachment, but can't get beyond this point.  My tech ability doesn't go much beyond being able to power up my phone, so I need a really simple solution, if one exists.

    First of all, Excel file can't save to iBook.  (iBook only can view PDF files). That's why you don't see it in "open in" options.  In order for you to save excel, you will need a third party app like Numbers, Office2.  There are a few free apps that can use to view.  I used Office2 from Byte2, because I can not only store and view later, I can do some edit too.  Especially when you want to edit a few numbers and re send them to my office or clients will be very useful for me. 

  • Mac won't open some files MasterPlan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.

    The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
    Please update this thread if your issue is resolved.
    Thanks,
    Shashi

  • Email attachment in PDF problem with Images

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

  • How to convert a workbook into PDF and broadcast as Email attachment

    Hello Gurus,
    i have installed the ADS (Adobe Document services). I would like to broadcast workbooks as a pdf file to some user.
    When i open the workbook and go to Broadcast --> Setup a broadcast setting for this workbook. The distribution type is
    Broadcast E-mail; Broadcast E-mail (Bursting); Broadcast Portal; Broadcast Multichannel and Output Format only MS Workbook and Link to current Data. Here i miss the possibility as PDF.
    Where can i set up that the workbook should be broadcast as PDF.
    Any help appreciated.
    Thanks and kind rgerads,
    Murat

    Thanks all for your answers,
    i also read that with changing the format in Report designer then broadcasting via PDF. Is there no possibility for PDFs for MS Excel Workbooks? How does it work when opening the query in Report designer? What do i have to do there but it is no solution for us because in the workbooks we use GET BEX DATA formulas and just show parts of the analyisis grid. I need a proper solution how to use broadcaster converting workbooks into PDF an send them as email attachment
    Thanks,
    Murat

Maybe you are looking for

  • Won't print to hp officejet d135 correctly. Have tried all reported solutions

    This problem started from the time we started using Firefox. We went to FF from IE because of problems there. I've tried everything I know how to do but it will not print correctly or it prints blank pages and nothing else or partial pages. I'm at my

  • Can't Get the Browser to Install

    Hi- I am not sure if this is the place to ask this but since I am in a bind I wil try it. I need Firefox browser instead of using Safari for an online course I am teaching. Since I figured installing Firefox would not cause problems I was not prepare

  • How to stop loop or VI automatic

    hello   help me please I'm trying to complete a project in the field of optics. I have an input by a photodiode and a voltage acquisition card, and I generates pulses to move a blade by a motor. I need a diagram in labview that will stop the generati

  • How do you increase the speed of your iPhone 4?

    Sometimes when switched from page to page on the home screen is delayed. Also, typing is delayed at certain times.

  • Behaving erratically when mousing over the text

    Hi all, I have a very strange problem. I am trying to do a simple photo-gallery using edge animate without using the timeline as much as possible. Let's say I have a thumbnail, and I want to mouse over the thumbnail and it goes semitransparent and a