Soap attachment mime attachments

Environment :
jdeveloper 11g (latest one)
I am trying to create web service with attachment (wsa). I need to send a file MIME from the client which gets saved and processed by the web service. The result which is a .txt file need to be sent back to the client. Trying to do it in JDeveloper the latest version. I did not find any link providing a sample or a beginners approach in using jdev to accomplish this task. Can I get a tutorial or a sample application which I could use it in my jdev.
Thanks,
sr
Edited by: Shashi_sr on Apr 17, 2010 4:16 PM

Hi I'm in the same boat... can we get some help?
Thanks

Similar Messages

  • 2 levels of MIME attachments in SOAP message

    Hello,
    I'm not a java specialist, and i want to know a few things before i start something wich eventually turns out impossible to do.
    i want to create a SOAP message with one attachment. this attachment must be a multipart/mixed MIME message itself:
    -- Part1
    soapxml
    -- Part1 (1 SOAP attachment = MIME message)
    Content-Type: multipart/mixed; boundary:"Part2"
    -- Part2
    subAttachA
    -- Part2
    subAttachB
    -- Part2
    subAttachC
    --Part2
    --Part1
    * first of all: should i use a MimeBodyPart objects for subAttachX and create it with MimeMultiPart.createMimeBodyPart() ?
    - that MimeMultiPart i create like this: new MimeMultiPart("mixed") ?
    - THIS IS THE MOST IMPORTANT: how do i get this MimeMultiPart into the SOAP attachment part ?
    could this work:
    //MimeMultipart extends MultiPart + constr: new MimePartDataSource(MultiPart part)
    MimePartDataSource mds = new MimePartDataSource(MimeMultiPart multipart);
    //MimePartDataSource extends DataSource + constr: DataHandler(DataSource ds)
    DataHandler dh = new DataHandler(mds);
    //will the following line automatically set: Content-Type: multipart/mixed; boundary:"Part2"
    //if not, how can i obtain the boundary (="Part2")
    AttachmetPart ap = soapMessage.CreateAttachmetPart(dh);
    //will i still be able to set the Content-Id
    ap.setContentId("miID");
    All help greatly appreciated,
    Pieter

    Did you already tried the way i described ?
    because i can't start untill another question is answered, maybe you know the answer:
    http://forum.java.sun.com/thread.jsp?forum=34&thread=351252

  • SOAP Mime Attachments

    I'm new to web services.. before actually getting my hands dirty.. I need to figure out some things before deciding i will undertake a project..
    I'm thinking of an asynchronous setup..were clients submit batches of data to a web method...clients will poll the service for a response
    (see pattern 3 > http://www.ibm.com/developerworks/library/ws-asynch2/index.html)
    This system must use web standards.. as more then 1 organisation will participate
    this will be a mixed environment - some clients will submit data on the fly, others will send batches
    Each entry in the batch will have 2 images of 3k each ...it seems that the problem is with memory allocation rather than the network performance.
    I'm estimating 500 records per batch.. so a typical payload would come up to 3mb
    Does using SOAP MIME attachments resolve this issue? from what i understood.. this avoids having the images loaded memory as part of the DOM tree..
    would this setup even work??

    Hi I'm in the same boat... can we get some help?
    Thanks

  • SOA Suite 11g - Email with attachments (Attachment from SOAP attachment)

    Hello,
    Can any one please help as to how I can do the following in Oracle SOA 11g:
    Using a BPEL process how can I send an Email with attachments where the attachment itself is coming from a SOAP attachment.
    The back ground is that we have portal sites from where the users can upload a document and then from their a SOA service is invoked and the attachment would be passed as (SOAP attachments) and then emails have to be send to users containing this uploaded document as the attachment.
    Thanks.
    feel free to email me [email protected]

    Yes, I need all supported standards and their version of SOA Suite 11g because my customer wants to upgrade from 10g to 11g, especially all supported standards and version number of OBPM 11g and OBPM 10g.
    A people has pasted all support standards and version number of OBPM 10g. I get a standard list of OSB.
    OBPM 11g supports:
    BPEL
    xml 1.0
    Servlet 2.3\JSP1.2 (J2EE 1.2),
    Servlet 2.4\JSP2.0(J2EE 1.4),
    Servlet 2.5\JSP2.1(Java EE 1.5)
    UDDI
    SOAP
    WSDL
    WS-BPEL for People
    XML Schema
    XPDL
    SOAP
    XQuery
    XLIFF
    XSL map
    XSLT
    UML
    Ant
    EJB 2.1, JPA/EJB 3.0
    JAAS
    Spring
    JAXB 1.0, JAXB 2.0
    XHTML
    HTML
    JSP
    JSF
    JSR-168
    XSQL
    WS-Policy
    But I cannot find the document about version number of the above standards

  • Unable to send a SOAP attachment(pdf) in a BPEL process

    Dear Forum,
    I have a requirement to attach a pdf and send it as part of a BPEL process response. Following are the details,
    1) I have a webservice which does the logic of building the pdf and returns it as a SOAP attachment. I have tested this service through SOAP UI and it works fine.
    2) I have a BPEL process which invokes the above webservice and returns the received pdf as a SOAP attachment.
    3) Since BPEL designer doesn't directly support the MIME attachments, I have modified the WSDL related to BPEL process to include MIME parts. Followed the steps as mentioned in the SOA suite documentation - http://docs.oracle.com/cd/B14099_19/integrate.1012/b14448/manipdoc.htm#BABDEEEB
    4) I have tested my bpel service through SOAP UI tool (cannot test it in 'em' console since my service has mime parts) but unable to receive the pdf attachment. BPEL process is throwing the following exception,
    <Mar 26, 2012 5:21:07 PM EDT> <Warning> <oracle.adfinternal.view.faces.renderkit
    .rich.TreeRendererUtils> <BEA-000000> <Context menu child is not a RichMenu>
    <Mar 26, 2012 5:22:19 PM EDT> <Error> <oracle.soa.bpel.engine.ws> <BEA-000000> <
    got RuntimeException
    java.lang.NullPointerException
    at oracle.integration.platform.attchmnt.AttachmentManagerImpl.encodeProp
    erties(AttachmentManagerImpl.java:569)
    at oracle.integration.platform.attchmnt.AttachmentManagerImpl.insertAtta
    chment(AttachmentManagerImpl.java:483)
    at oracle.integration.platform.attchmnt.AttachmentManagerImpl.storeAttac
    hment(AttachmentManagerImpl.java:189)
    at oracle.integration.platform.attchmnt.AttachmentManagerImpl.storeAttac
    hment(AttachmentManagerImpl.java:144)
    From the SOAP UI response(error message), I found that 'Content-Type' for this request is coming as 'text/xml' rather than 'mimemultipartrelated'. Is it not possible to send pdf attachments through BPEL? Please provide your inputs to resolve this issue. I am stuck up with this issue for a while now.

    Hi Vamsee,
    In my case pdf is returned by a webservice, not from any physical location. The example given there shows attaching a pdf file from physical location. But I will get the pdf as part of another webservice response. So I am assigning the attachment to a bpel variable after getting the webservice response. This is where my bpel process is throwing an exception mentioned above.
    Regards,
    Satya.

  • Unique Problem: Returning SOAP+ Attachment using a class based webservice

    Hi everyone,
    Im trying to return a Soap+ attachment response back using the following:
    attachDoc(byte[] bdoc, String sTransactionNumber,
                   String sRequestedType)
    Where byte[] is the attachment and the 2 string parameters are soap message contents.
    The attachment is attached successfully to the message and i can send a response back to the clients console using :
    message.writeTo(System.out);
    My problem is that i dont know how to return this soapmessage+attachment back to the client.
    Ive tried using the return type of the method as :
    public SOAPMessage attachDoc(byte[] bdoc, String sTransactionNumber,
                   String sRequestedType)
    but i cant return a SOAPMessage return type in axis.
    Does anyone have any clues how i should sort this out so that the client gets the SOAPMessage and attachment when the method is called ?
    Please help :S
    Thanks,

    I dunno if this is what you asked for....
    Hope this helps a bit
    You may want to check this link out
    http://www-unix.globus.org/mail_archive/discuss/2007/02/msg00037.html
    MessageContext msgContext = MessageContext.getCurrentContext();
    File file = new File("filename.txt");
    org.apache.axis.attachments.AttachmentPart replyPart=
    new org.apache.axis.attachments.AttachmentPart(new DataHandler(new
    FileDataSource(file)));
    Message rspMsg= msgContext.getResponseMessage();
    rspMsg.addAttachmentPart(replyPart);
    so ur basically adding the file to the reply message.
    The link i gave has a better description, it has the entire process of sending file to server and downloading file from server codes.

  • Exception when trying to create a soap attachment javax.activation. Unsuppo

    I am trying to pass an object String [] as a soap attachment.
    Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
    I used the constructor DataHandler (Object obj, String mimeType)
    where the object was my StringArray, and MIME is the XML representation of
    a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
    It threw the same error for the other two.
    Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
    Thanks for any help
    Tony

    I am trying to pass an object String [] as a soap attachment.
    Reading the docs, if I pass a parameter as type datahandler, it is automatically treated as an Attachment.
    I used the constructor DataHandler (Object obj, String mimeType)
    where the object was my StringArray, and MIME is the XML representation of
    a java type, which according to weblogic docs is NMTOKENS,IDREF or ENTITIES.
    It threw the same error for the other two.
    Am I using DataHandler correctly, is MIME the SOAP representation of the Java Object in memory.
    Thanks for any help
    Tony

  • How to download a SOAP attachment using pl/sql

    Gurus,
    I have a custom pl sql application that is web services based. The custom pl sql application invokes the external web services and updates Oracle Field Service application.
    One of the new requirements is to get the signatures from SOAP Attachments (a binary file) and attach it to Field Services transactions in Oracle.
    Does anyone has an example of how to download the SOAP attachment file from web service using pl/sql.
    The pl sql program uses UTL_HTTP to access web services.
    Much Thanx.

    I think you may be in the wrong forum, but anyways...
    What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
    if you search for htp.print you should find loads of examples.
    hope this helps.
    Merv.

  • Mime attachments in Mail from two mac users

    I've been receiving mime attachments in Tiger Mail from Ebay and members for a while and I've searched the forum for answers but haven't found a viable solution yet. I end up using TextEdit to open them. I've contacted ebay about this and they have no clue, and think it's spam even though I tell them I get them from Ebay tech support, however they do show up ok in my RCN webmail when I check there.
    Anyway that's not the problem now, I was trying to troubleshoot my father's mail problem who is Panther Mail and it mysteriously stopped working for him a couple days ago both sending and receiving. However he is getting them from his webmail at SBC/Yahoo formerly Ameritech. I checked his account settings over the phone and they seemed correct to what he had before but I had him contact his provider.
    They don't seem to know what's going on and wanted him to contact Apple.I had him contact them again and they finally did have him change his outgoing mail server from Ameritech to SBC/Yahoo. So he is able to send from there now but not receive emails. ( he still still sends and receives ok at his webmail site) . Since they changed the outgoing mail server however, the email he sends me (all plain text) is coming now as a mime attachment.
    I've never seen this before from two Mac users using Mail and plain messages. I had him try changing back to the Ameritech outgoing sever but that still doesn't work. And again if I check my RCN webmail I can view these messages fine in the body of the email there, just not in Mail. Any ideas what may have caused this? Is it because of the Yahoo outgoing mail server? He's about givin up and has resorted to his webmail only for now. I generally like Mail but this is a pia.
    Craig
    G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ   Mac OS X (10.4.7)  

    <Where is it designated as a "mime-attachment" & where does the "27bytes" text appear?>
    It shows mime-attachment(27bytes) just below the little plain document icon. This shows up both in the body of the email and also the little attachment drop down menu below the To / subject area.
    <Also, if you go to Mail's View > Message submenu when one of these messages is open, which (if any) 'alternate' menu choices are available (not grayed out)? >
    All are greyed out except Long headers and Raw source.
    Here is the header info in the message if that helps any:
    From: [email protected]
    Subject: test
    Date: December 27, 2006 10:49:27 PM EST
    To: [email protected]
    Return-Path: <[email protected]>
    Received: from mr05.lnh.mail.rcn.net (EHLO mr05.lnh.mail.rcn.net) ([207.172.157.25]) by ms05.lnh.mail.rcn.net (MOS 3.7.5a-GA FastPath queued) with ESMTP id CYF54813; Wed, 27 Dec 2006 22:49:31 -0500 (EST)
    Received: from mx06.lnh.mail.rcn.net (mx06.lnh.mail.rcn.net [207.172.157.56]) by mr05.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id MDY18691; Wed, 27 Dec 2006 22:49:30 -0500 (EST)
    Received: from flpvm09.prodigy.net ([207.115.20.39]) by mx06.lnh.mail.rcn.net with ESMTP; 27 Dec 2006 22:49:29 -0500
    Received: from [75.34.9.255] (adsl-75-34-9-255.dsl.chcgil.sbcglobal.net [75.34.9.255]) by flpvm09.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id kBS3nEOh005937 for <[email protected]>; Wed, 27 Dec 2006 19:49:15 -0800
    X-Orbl: [75.34.9.255]
    Domainkey-Signature: a=rsa-sha1; s=sbc01; d=ameritech.net; c=nofws; q=dns; h=mime-version:content-transfer-encoding:message-id:
    Content-Type: to:from:subject:date:x-mailer; b=RT51cAASkaC4dXKPZSEOEdmv7ApKJ68xdvGgdP7ifDKDoI6j6EIr5dyZl7OrPcoww SjzfTr1nAxHOJGy0wzYeg==
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    Mime-Version: 1.0 (Apple Message framework v624)
    Content-Transfer-Encoding: 7bit
    Message-Id: <[email protected]>
    X-Mailer: Apple Mail (2.624)
    X-Junkmail-Status: score=10/50, host=mr05.lnh.mail.rcn.net
    X-Junkmail-Sd-Raw: score=unknown, refid=str=0001.0A090203.45933D44.001B,ss=1,fgs=0, ip=207.115.20.39, so=2006-05-09 23:27:51, dmn=5.2.121/2006-09-27
    here is the raw source. The last line is what shows up in the mime attachment when it is opened in text edit or viewed at my webmail :
    Return-Path: <[email protected]>
    Received: from mr05.lnh.mail.rcn.net (EHLO mr05.lnh.mail.rcn.net) ([207.172.157.25])
    by ms05.lnh.mail.rcn.net (MOS 3.7.5a-GA FastPath queued)
    with ESMTP id CYF54813;
    Wed, 27 Dec 2006 22:49:31 -0500 (EST)
    Received: from mx06.lnh.mail.rcn.net (mx06.lnh.mail.rcn.net [207.172.157.56])
    by mr05.lnh.mail.rcn.net (MOS 3.7.5a-GA)
    with ESMTP id MDY18691;
    Wed, 27 Dec 2006 22:49:30 -0500 (EST)
    Received: from flpvm09.prodigy.net ([207.115.20.39])
    by mx06.lnh.mail.rcn.net with ESMTP; 27 Dec 2006 22:49:29 -0500
    X-ORBL: [75.34.9.255]
    DomainKey-Signature: a=rsa-sha1; s=sbc01; d=ameritech.net; c=nofws; q=dns;
    h=mime-version:content-transfer-encoding:message-id:
    content-type: to:from:subject:date:x-mailer;
    b=RT51cAASkaC4dXKPZSEOEdmv7ApKJ68xdvGgdP7ifDKDoI6j6EIr5dyZl7OrPcoww
    SjzfTr1nAxHOJGy0wzYeg==
    Received: from [75.34.9.255] (adsl-75-34-9-255.dsl.chcgil.sbcglobal.net [75.34.9.255])
    by flpvm09.prodigy.net (8.13.8 out.dk.spool/8.13.8) with ESMTP id kBS3nEOh005937
    for <[email protected]>; Wed, 27 Dec 2006 19:49:15 -0800
    Mime-Version: 1.0 (Apple Message framework v624)
    Content-Transfer-Encoding: 7bit
    Message-Id: <[email protected]>
    Content-Type: text/plain; charset=US-ASCII; format=flowed
    To: Craig Hlady Hlady <[email protected]>
    From: bohdan hlady <[email protected]>
    Subject: test
    Date: Wed, 27 Dec 2006 21:49:27 -0600
    X-Mailer: Apple Mail (2.624)
    X-Junkmail-Status: score=10/50, host=mr05.lnh.mail.rcn.net
    X-Junkmail-SD-Raw: score=unknown,
    refid=str=0001.0A090203.45933D44.001B,ss=1,fgs=0,
    ip=207.115.20.39,
    so=2006-05-09 23:27:51,
    dmn=5.2.121/2006-09-27
    craig.;;check this one out
    G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ   Mac OS X (10.4.7)  

  • SOAP Attachment & performances for WLI

    Dear all,
    I am implementing webservices, accepting a SOAP attachment as parameter. The implementation is based on Workshop / WLI jws file. The web service is RPC style since WorkShop is unable to generate a correct WSDL file with SOAP atttachment & document style (known limitation from BEA).
    My problem is concerning attachments. Indeed, in my mind, attaachement are there in order to prevent extra load into the XML parser and to speedup processing and avoid heavy use of memory.
    So I made some tests with a simple soap request and attachments. Here are the results (I calculate the time to send and receive response from web service), the web service itself just prints the content type, anything else.
    Attachement size | Time
    39 kb 344ms
    78 kb 406ms
    155 kb 484ms
    300 kb 750ms
    463 kb 1000ms
    1389 kb 4600ms
    2700 kb 23609ms
    5500 kb 140000ms
    Of course, the client and server are running on the same machine and are using the loopback interface. So there is no network bootleneck to take into account.
    As conclusion, we can see that for small messages, (<300kb) the curve is good... But performances start to fall drastically with messages larger than 300kb. This is not a problem of memory but CPU usage (fully used diring the 1400 seconds).
    Any idea, any opened cases ?
    Thansk for all,
    Pascal Bourgeois

    This post :
    http://soastuff.wordpress.com/2007/06/06/handling-opaque-datatypes-in-bpelesb/
    Describes how to use the opaque-schema for sending files over the ESB.
    Hope you can use this.
    or do you want to use the soap-headers for this?

  • SOAP attachment - module development?

    Hi,
    I have an IDOC -> SOAP scenario where I have to call a webservice that uses SOAP attachment.
    Example:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ueb="IBrokerInterface">
       <soapenv:Header/>
       <soapenv:Body>
          <ueb:TEBIBrokerInterface_PublishWS>
             <aClientId>TEST</aClientId>
             <aMessage>cid:file.xml</aMessage>
             <aDuplicates>0</aDuplicates>
          </ueb:TEBIBrokerInterface_PublishWS>
       </soapenv:Body>
    </soapenv:Envelope>
    The "file.xml" has to be a SOAP attachment.
    If I use a SOAP receiver channel how do I get the IDOC payload moved into a SOAP attachment and still keep the SOAP envelope?
    Can this only be done with module development?
    Thanks Rasmus

    Hi Rasmus,
    You cannot create an attachment in mapping.
    In PI 7.1 there will be a Java Mapping API for working with attachments, but the code will be similar to an adapter module. It will not be possible with XSLT.
    Regards
    Stefan

  • MIME Attachments Weirdness

    A co-worker sent a Quicktime move to 3 of us at mail.ourcompany.com and 2 others outside of our domain.
    The 3 of us received the movie just fine, the 2 of them got MIME attachments that they couldn't read.
    1 of them actually had an email address at ourcompany.com so it was resent to that address and worked just fine. Note that this user has both accounts on the same computer, but the attachment only arrived intact on his work inbox and not his personal inbox.
    The other one was resent using a Gmail account from a web browser and it worked that time.
    Why is Mail recognizing some MIME attachments and not others?

    Hi,
    Try an IE user agent.
    From your Safari menu bar click Safari / Preferences then select the Advanced tab. Enable the develop bar.
    Now from the menu bar again click Develope / User Agent. Try IE 8, 7, or 6.
    Microsoft/Hotmail are not Mac friendly.
    Check the Microsoft site to see which file types Hotmail supports.
    Carolyn

  • How do I open Mime attachments in emails

    I keep getting mime attachements in emails from certain users and cannot view the email on my I touch. I tried looking in the settings and cannot see any settings to change that would help . Any help is greatly appreciated

    Have you found a solution to open the mime attachments? I have the same problem.

  • Getting MIME attachments in emails

    I have an iMac and am having a problem with the Mail program. Any message I get from any ebay member comes as a MIME attachment instead of the text being in the body of the email. This includes replies from ebay support. I can view the emails thru ebay's "my messages" fine but the same messages are MIME attachments in the Mail program. Any other emails from non-ebay users I get are fine. This has only started happening in the last few weeks or so.
    I don't see anything in the Mail preferences having to do with MIME.
    Any help would be appreciated.
      Mac OS X (10.4.6)  

    Ernie,
    Just to clarify (hopefully), the emails that I am receiving with MIME attachments were not originally sent with an attachment. I have questioned those who have sent the emails and they verified that they did NOT attach any documents to the email only typed the message in the email itself. However when receiving the email in the Apple Mail program the text is now in a mime attachment not in the body of the email. Somewhere along the way, the email is getting an attachment. It has NOT always been that way so I am not sure what happened to cause this. I may try and use another mail program instead (although I do like apple's mail program) and see if there is a difference.
    I can check with my ISP (RCN) and see if they added any SPAM screening although it seems strange it would only be on a emails coming from one place (ebay).
    Thanks for your response.
    Jane

  • Display of MailMan MIME attachments too wide

    I follow several forums that send a daily update of the messages. The email I get has MIME attachments that are put  together by the MailMan software.
    In the ancient past, these attachments were not accessible in the iPad Mail program, but you had to tap on each one to see it. At least you could read each attachment (separately!) with a fair bit of vertical scrolling.
    With iOS 8 two things seem to have changed. The first is that some messages have the attachments displayed and others have one displayed and the others as "Tap to Download" which means that you have to tap each attachment twice: once to download it and again to view it. Is there a way to get them all downloaded at once (the way it was before iOS8)?
    The more serious problem is that when you do tap on an attachment to display it, the text is about twice as wide as the window it is shown in. This means that you have to scroll horizontally to read each individual line (as well as vertically to read the whole message but that is understandable). This makes it VERY difficult to read any message.
    Again, is there a way to fix this so that the text wraps at the width of the popup display?

    Double tap the screen with 3 fingers to turn the Accessibility zoom feature off.

Maybe you are looking for