Multipart mime in XI for attachments?

Hi,
I am not big on all the terminology, so please me nice
But in a discussion for B2B with a marketplace, the subject of recieving attachments came up and he asked if we could accept our attachments in Multipart mime. Now I know Binary and text of the attachment types, but I do not know how MIME format comes into play.
Any explanation or a simple, yes you can accept attachment in multipartr mime would be fine!
The adapter will be the HTTP adapter not an email adapter.
Kind Regards,
Chris

Hi Chris,
The HTTP adapter does not support multipart messages, but you can use the SOAP sender adapter in no-soap mode instead.
When the SOAP adapter receives a multipart message, it creates an attachment for each part. The first part becomes the main payload, the other parts become attachments.
The problem is, that most adapters can not work with attachments, so you need SOAP or Mail receiver adapter, Java or ABAP proxy to handle the attachments in receiver direction.
Regards
Stefan

Similar Messages

  • Trouble receiving multipart mime messages

    I am encountering a problem which has me perplexed... I am attempting to create and send a simple multipart mime message through an smtp server which requires authentication. The thing is the mail gets delivered OK, but nothing appears in the body of the message nor are there any attachments. My code follows, wonder if anyone has any ideas... A full day of searching though Sun documentation, forums and internet surfing has not given me any help... sigh.. Thanks, Marc...
    private void sendEmail(
         String emailURL,
         String notes) {
         String to = emailURL;
         String from = "[email protected]";
         String smtpHost = "mail.myservername.com";
         String user = "myId";
         String password = "myPassword";
         boolean debug = true;
         // create some properties and get the default Session
         Properties props = new Properties();
         props.put("mail.smtp.host", smtpHost);
         props.put("mail.smtp.auth", "true");
         Session session = Session.getDefaultInstance(props, null);
         session.setDebug(debug);
         try {
              // create a message
              MimeMessage msg = new MimeMessage(session);
              msg.setFrom(new InternetAddress(from));
              InternetAddress[] address = { new InternetAddress(to)};
              msg.setRecipients(Message.RecipientType.TO, address);
              msg.setSubject("Welcome to JavaMail");
              msg.setSentDate(new Date());
              // create and fill the first message part
              MimeBodyPart mbp1 = new MimeBodyPart();
              mbp1.setText(notes);
              mbp1.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
              mbp1.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
              // create and fill the second message part
              MimeBodyPart mbp2 = new MimeBodyPart();
              // Use setText(text, charset), to show it off !
              mbp2.setText("Eventually I plan to attach an image here");
              mbp2.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
              mbp2.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
              // create the Multipart and its parts to it
              MimeMultipart mp = new MimeMultipart("mixed");
              mp.addBodyPart(mbp1);
              mp.addBodyPart(mbp2);
              // add the Multipart to the message
              msg.setContent(mp);
              msg.saveChanges();
              // send the message
              javax.mail.Transport transport = session.getTransport("smtp");
              transport.connect(smtpHost, user, password);
              transport.sendMessage(msg, address);
              transport.close();
         } catch (MessagingException mex) {
              handleException(mex);
              Exception ex = null;
              if ((ex = mex.getNextException()) != null) {
                   handleException(ex);

    OH NEVER MIND!!!! What a NASTY NASTY NASTY trap! Shame on Sun and their design/implementation of JavaMail!!!! I didn't have the activation jar file installed on my server.... Gives no errors, no warnings, no exceptions are thrown! Absolutely no clue whatsoever that it is missing!!!
    Marc..

  • TS3899 Hi. How do I attach more than one document to an email on the iPad, especially if they come from different apps? When writing an email on the iPad there's no option for attachments.

    Hi. How do I attach more than one document to an email originating from my iPad, especially if the documents come from different apps? When starting an email there's no option for attachments, unless you send the document from inside an app like iBook and then you can only send one at a time.

    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
     Cheers, Tom

  • Use one drive for attachments using outlook

    using the portal or OWA you can use one drive for attachments rather then adding the file to the e mail itself , i was wondering if we will have this feature on outlook soon

    Hi,
    As you have known, in Outlook client there is no such feature right now, we need to insert the OneDrive file link manually to the new message if we want to attach a file.
    I can't guarantee if this feature will be added in the further version, but please be assured that any improvements in the product are based on users' requirements. Our developers strive to capture Microsoft users' ideas and are working hard to create a
    more powerful and easy-to-use product.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Unable to search for attachments in mail

    Hi,
    The problem I'm having is, when I search in mail for an attachment (that exists), nothing comes up. Searching for emails works fine. I'm running Yosemite 10.10.2. I happen to have another computer running Yosemite which can search for attachments just fine.
    This computer was previously running Mavericks, and searching for attachments worked there. I backed up my mail files (inboxes, plists, etc.) and then did a clean install of Yosemite (not an upgrade) and then moved my old mail files back. Perhaps somehow this is the issue?
    Would appreciate any help!

    Hi,
    The problem I'm having is, when I search in mail for an attachment (that exists), nothing comes up. Searching for emails works fine. I'm running Yosemite 10.10.2. I happen to have another computer running Yosemite which can search for attachments just fine.
    This computer was previously running Mavericks, and searching for attachments worked there. I backed up my mail files (inboxes, plists, etc.) and then did a clean install of Yosemite (not an upgrade) and then moved my old mail files back. Perhaps somehow this is the issue?
    Would appreciate any help!

  • How to specify stylesheet for attachments in Human task

    Dear Experts,
    I can able to add an attachment from BPEL process to Human Task. So from Worklist I can able to download the attachment. Here, I am attaching an XML payload, and I am receiving .xml file from worklist. Now I want to do xsl mapping with my attachment. To do that we have an option when creating Human Task from BPEL . In .task form, under advanced settings--> specify style sheets for attachments, specify wordML for attchments. I have used those options. But not yet my .xsl file mapped with .xml. Is there is any other way to do xsl mapping. Please suggest me.
    Thanks,
    Rajesh

    Hi Anirudh,
    I am using SOA Server suite 10.1.3.1 and JDeveloper 10g. Also I am not using "Application Server Developer's Guide for Microsoft Office Interoperability" this document, what you have mentioned in your last post. My problem is I am having xsl with me, need to map this xsl to my xml attachment. To do that we are having an option on .task form editor, Under Advanced Settings. We can mention/specify stylesheet for attachment, or we can specify wordML for attachment. I have tried both but I cant able to do xsl transformation. I have seen some code in this link. But I dont know whether this blog is correct one. Please suggest me.
    Thanks,
    Rajesh

  • Where can I Increase the size limit for attachments

    Good Morning:
    I am working in OCS R2 (9.0.4). Where can I Increase the size limit for attachments in the messages sent. Also can I set this parameters to user level or the change affect every user in the system?
    Thanks a lot.

    babowa wrote:
    The only way to increase the fonts on your desktop would be system wide by going down a notch on the resolution. Some people won't do it because it increases the pixel size so the fonts won't be quite as sharp; I decided I'd rather have that than having to squint continuously. Go to System Preferences > Displays > Scaled > this will give you all resolution options available. No harm in trying - just check the default (top) choice again if you don't like any of the others.
    It's a b*&^ch getting old .  I still use the screen zoom instead of decreasing resolution, but maybe soon ...

  • What is "use SSL" and "S/MIME" mail settings for?

    What is "use SSL" and "S/MIME" mail settings for?

    it has do with encrypting your mail when sent over the web

  • Update the url for attachments in SAP

    Hi All,
    We want to update the url for attachments in SAP in the transaction
    code MIR4.As there are 300000 invoices in SAP , please let us know how
    we can update the url for the attachments.
    Thanks

    Hello,
    Once try
    CALL FUNCTION 'BBP_ATTACH_BUILD_URL'
    EXPORTING
    is_attach = ls_attach
    IMPORTING
    ev_url       = lv_url
    TABLES
    et_messages = lt_messages.
    Regards,
    Neelima

  • New tree view for attachments

    Hello,
    I am currently trying to figure out how I can add acustom tree view for attachments to the account overview page. Per defualt it has the standard list for attachments, but I need to replace that with a component where I can "fake" the attachments that are displayed, and which comes in tree view mode as default. The last I think will be pretty easy, but during debugging, I have not yet figured out how the component GS_CM gets its data, so that I can modify it or feed it new data (to documents that do exist in the system, but have no direct link to the account).
    Anybody with any knowledge of this? Thanks!
    Thomas

    Hello,
    I am currently trying to figure out how I can add acustom tree view for attachments to the account overview page. Per defualt it has the standard list for attachments, but I need to replace that with a component where I can "fake" the attachments that are displayed, and which comes in tree view mode as default. The last I think will be pretty easy, but during debugging, I have not yet figured out how the component GS_CM gets its data, so that I can modify it or feed it new data (to documents that do exist in the system, but have no direct link to the account).
    Anybody with any knowledge of this? Thanks!
    Thomas

  • Change the path for attachments after changing a server

    Hello experts,
    I have a requirement which I cannot solve...
    By a customer a server which was used for saving the attachments is no longer active. The customer has now a file server. So in SAP we have changed the path information under Administration > System Initialisation > General Setting in the Path tab from the old server to the file server like this:
    Old path:              
    oldServer\ALLGEMEIN\SAP\DOKUMENT_TEXT\
    New Server:        
    newServer\ALLGEMEIN\SAP\DOKUMENT_TEXT\
    But now I have the problem that all the path information in the UDFs from type LINK and also in all attachment fields like in activities, where the customer has put in a file are still standing on the old status.
    We have allready copied all attachzments from the old server to the new one in the same structure as in the old server).
    Now I have to change in all fields, which are from type LINK (this concerns by the customer only item master date, BP master data and activities) the path information.
    That means I have to paste the string in all the fields 'oldServer' whith 'newServer'.
    Has anybody an idea how I could do this???
    Best regards,
    Vural

    Hi Vural,
    We are facing same kind of issue with our landscape, how did you changed the path for attachments.
    Tcode = IH01
    Worked with user and tried to change the path for few attachments from \\old_server\GROUPS\ to \\new_server\GROUPS\ (storage server) and its worked, but as per user there are lot of files exist in server, they wants to upgrade the path for all files automatically from old_server to new_server.
    Regards,
    Rishi

  • OSB defaulting Content-Type to "multipart/related" in case of attachments

    I have scenario where I need to invoke a REST Webservice from OSB which accepts only media types which has "multipart/atom+xml". OSB is used for protocol transformation converting the SOAP request into the HTTP POST request with multipart. I have Proxy Service which will unwrap the message from the SOAP Body and post the same message into the payload of the Business Service and the attachment is passed 'as is' from the SOAP Service. The external REST Service Provider expects the media type to be "multipart/atom+xml", but in OSB when an attachment is present in the message, OSB is overrding the "Content-Type" proeprty to "multipart/related" inspite of me setting the "Content-Type" property of HTTP Transport Header in OSB and as result external RESTFUL Service is throwing "415-Unsupported Media Type" error. Below is the test results. One interesting thing is, it happens only when there is attachment present in the message. In case of a message which doesn't have attachment any "Content-Type" specified in the Transport Header is passed by the OSB to the external service. Any help is highly appreciated.
    OSB Transport Header
    Added the header <http:Content-Type>multipart/atom+xml</http:Content-Type>
    Actual Raw Message
    POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
    Content-Type: multipart/related; type="text/plain"; start="<Root_-328322390>"; boundary=MIME_Boundary; charset=UTF-8
    MIME-Version: 1.0
    User-Agent: Java1.6.0_17
    Host: xxx7200:7004
    Accept: text/html, image/gif, image/jpeg, */*; q=.2
    Proxy-Connection: Keep-Alive
    Content-Length: 4823
    Expected Raw Message
    POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
    Content-Type: multipart/atom+xml; boundary=MIME_Boundary;
    User-Agent: Java1.6.0_17
    Host: xxx7200:7004
    Accept: text/html, image/gif, image/jpeg, */*; q=.2
    Proxy-Connection: Keep-Alive
    Content-Length: 4803
    -KC
    Edited by: 799459 on Apr 8, 2011 5:36 AM
    Edited by: 799459 on Apr 8, 2011 7:02 AM
    Edited by: 799459 on Apr 8, 2011 7:13 AM
    Edited by: 799459 on Apr 8, 2011 7:14 AM

    HTTP content-type header has the following limitation as per osb doc.
    Oracle Service Bus run time may overwrite these headers in the binding layer when preparing the message for dispatch. If these headers are modified, $inbound and $outbound are updated accordingly. So what you are seeing may be working as designed. Cant the remote service accept the multi part related content type set up by osb ?

  • Call web service (multipart MIME soap request) using pl/sql (utl_http)

    I've the following header and http request.
    POST http://deab/DexNETWebServices_4_0_0_4/LoginService.svc HTTP/1.1
    MIME-Version: 1.0
    Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1";start-info="application/soap+xml"
    VsDebuggerCausalityData: uIDPo5F/qXRc4YJImqB6Ard30cQAAAAAAjIXinpIVUulXLJOsSG7yyv7Lf2yHgpHlIxvc6oeqaAACQAA
    Host: deab
    Content-Length: 1017
    Expect: 100-continue
    Accept-Encoding: gzip, deflate
    Connection: Keep-Alive
    --uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1
    Content-ID: <http://tempuri.org/0>
    Content-Transfer-Encoding: 8bit
    Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserName</a:Action><a:MessageID>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://deab/DexNETWebServices_4_0_0_4/LoginService.svc</a:To></s:Header><s:Body><LoginByUserName xmlns="http://tempuri.org/"><systemId>19e0ddb4-5fa5-41ee-b624-aea762865a6c</systemId><strName>FirmwareUpdateLogQueryWorker</strName><productId>0af39a3e-6549-485b-872f-b73413203998</productId><password>abc</password></LoginByUserName></s:Body></s:Envelope>
    --uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1--
    I'm using the following code to set the header from PL/SQL and call the request. But UTL_HTTP.get_response returns the error 400 Bad Request.
    DECLARE
       l_request         CLOB;
       l_http_req        UTL_HTTP.req;
       l_http_resp       UTL_HTTP.resp;
       v_buffer          VARCHAR2 (32767);
       p_status_code     NUMBER (9);
       p_error_message   VARCHAR2 (32767);
       p_response        CLOB;
    BEGIN
      l_request :=
                '--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1'
             || CHR (13)
             || 'Content-ID: <http://tempuri.org/0>'
             || CHR (13)
             || 'Content-Transfer-Encoding: 8bit'
             || CHR (13)
             || 'Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"'
             || CHR (13)
             || CHR (13)
             || '<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://tempuri.org/ILoginService/LoginByUserName</a:Action><a:MessageID>urn:uuid:cf410a05-23d4-4b92-a22c-329cbc19fbe7</a:MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand="1">http://deab/DexNETWebServices_4_0_0_4/LoginService.svc</a:To></s:Header><s:Body><LoginByUserName xmlns="http://tempuri.org/"><systemId>'
             || '19e0ddb4-5fa5-41ee-b624-aea762865a6c'
             || '</systemId><strName>'
             || 'FirmwareUpdateLogQueryWorker'
             || '</strName><productId>'
             || '0af39a3e-6549-485b-872f-b73413203998'
             || '</productId><password>'
             || 'abc'
             || '</password></LoginByUserName></s:Body></s:Envelope>'
             || CHR (13)
             || '--uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1--';
          DBMS_OUTPUT.put_line ('request ' || l_request);
          l_http_req := UTL_HTTP.begin_request ('http://deab/DexNETWebServices_4_0_0_4/LoginService.svc', 'POST', 'HTTP/1.1');
          UTL_HTTP.set_header (l_http_req, 'MIME-Version', '1.0');
          UTL_HTTP.set_header (
             l_http_req,
             'Content-Type',
             'multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:e4c19840-745d-45b2-90ca-12d71be4cfd9+id=1";start-info="application/soap+xml"');
          --      UTL_HTTP.set_header (l_http_req, 'Content-ID', '<http://tempuri.org/0>');
          --      UTL_HTTP.set_header (l_http_req, 'Content-Transfer-Encoding', '8bit');
          UTL_HTTP.set_header (
             l_http_req,
             'VsDebuggerCausalityData',
             'uIDPo5F/qXRc4YJImqB6Ard30cQAAAAAAjIXinpIVUulXLJOsSG7yyv7Lf2yHgpHlIxvc6oeqaAACQAA');
          UTL_HTTP.set_header (l_http_req, 'Content-Length', LENGTH (l_request));
          --                  UTL_HTTP.set_header (l_http_req,
          --                                       'SOAPAction',
          --                                       'http://tempuri.org/ILoginService/LoginByUserName');
          UTL_HTTP.write_text (l_http_req, l_request);
          DBMS_LOB.createtemporary (p_response, FALSE);
          l_http_resp := UTL_HTTP.get_response (l_http_req);
       BEGIN
          LOOP
             UTL_HTTP.read_text (l_http_resp, v_buffer, 32767);
             DBMS_OUTPUT.put_line (v_buffer);
             DBMS_LOB.writeappend (p_response, LENGTH (v_buffer), v_buffer);
          END LOOP;
       EXCEPTION
          WHEN UTL_HTTP.end_of_body
          THEN
             NULL;
       END;
       UTL_HTTP.end_response (l_http_resp);
       p_status_code := l_http_resp.status_code;
       p_error_message := l_http_resp.reason_phrase;
       p_response := REPLACE (p_response, '&lt;', '<');
       p_response := REPLACE (p_response, '&gt;', '>');
       DBMS_OUTPUT.put_line (
          'Status: ' || p_status_code || '-' || p_error_message || ': ' || p_response);
    END;
    Thank you for your help on this.

    HI Michiel
    I am also trying to achieve something similar to that. I am trying to call a web service that sends an xml attachment over MTOM? Kindly, let me know if this was achievable from your end? I mean how did the issue got resolved.
    thanks
    vijay

  • Changing "Mail Downloads" folder for attachments

    It seems in Leopard Mail, when you double click an attachment to open it, it is temporarily saved to ~/Library/Mail Downloads. This is in contrast to (I think) Tiger, where it would be saved to the Downloads folder set in the General preferences. There is still a setting for the Downloads folder in the General preferences, and according to the help window, it is to "Specify the folder in which to temporarily save attachments you open from a message". To me, that means the same as the Tiger behavior. However, if I change this preference to, say, "Desktop", it seems opening an attachment (not explicitly saving it) still saves it to the ~/Library/Mail Downloads folder, not the assigned folder. Is this the correct behavior? If so, the help window is misleading. Personally, I would like the option to change this folder, although I suppose there are workarounds such as changing the Mail Downloads folder to an alias of the desired destination folder.
    thanks.

    Ok, so much for that clever workaround. Doesn't work, Mail just throws up an error and refuses to save the attachment. Any other ideas? I just want Mail to auto-save opened attachments onto the Desktop, in case I forget to explicitly save it, and so I don't have to root into subfolders to find it.

  • OPEN SAVE option not coming for attachments

    Hi Experts,
                    we are showing the different types of attachments for Purchase order and Purchase requisition in our web dynpro abap application.
    when the user opens a PO and clicks on attachment button using my custom designed web dynpro application
    it shows a popup window with the list of attachments there for that particular PO.
    if we click on the attachment link (file download UI element) ... it should open a window(like popup) and give the option for save and open which is not happening for .msg(email message) and pdf file formats.
    but by defalut we are getting the save open option for excel, ppt, and other file type attachments and the same not happedning for .msg and pdf types.
    please suggest.
    Thanks in advance
    Sateesh J

    Hi Sateesh,
    Please make sure the behaviour property of FileDownload UI should be set as 'allowsave' to enable the functionality which you need.
    If you are facing the issue even after setting it as "allowsave" then please elaborate more.
    Thanks,
    Vishesh

Maybe you are looking for

  • Appearance of result row in query

    Hi guys, I have the following query example (part of it): row1 100.000 credit amount row2 100.000 credit amount row3 100.000 credit amount result 300.000 I only want to be displayed: row1 ... row2 ... row3 ... result 100.000 I know how the rows (1-3)

  • How do you send a date from java to a stored procedure

    Oracle 8.0.5 using thin drivers I'm trying to pass a date to a stored procedure. Does anybody have an example of how to do this. I want to send a month-day-year 01/01/1999 to oracle to be inserted into the table. what should the java code look like?

  • Getting message E:\iPod_Control\iTunes\iTunesPrefs corrupt or unreadable

    I only bought my iPod three weeks ago, and everything had been running smoothly. But today while putting a playlist together my whole memory (7 gb) was wiped (it was on the manual update setting) and I cannot explain why. Now I keep getting the messa

  • Constant disconnect for wireless and wired for the past two weeks...

    And it's becoming worse and worse. I don't understand and Verizon has escalated my problem - BUT NO ONE HAS CALLED ME BACK. It's been over two weeks. I've restarted, reset, rebooted, screen shared with tech support. They even sent me a new modem. Bot

  • How big is my backup?

    Each new backup folder appears to store a complete copy of every file on my hard drive. I realize that this is through the magic of the file system and that only the changed data is actually stored. But, I have no way of knowing how much space any pa