MTOM with Attachments

Hi,
I am trying to attach a zip file(could actually be any file) along with a MTOM msg. I gather from this link http://axis.apache.org/axis2/java/core/docs/mtom-guide.html#a33 that it could actually be an MTOM msg. In My options i set the following code
options.setProperty(Constants.Configuration.ENABLE_SWA,Constants.VALUE_TRUE);
options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE);
options.setProperty(Constants.Configuration.MESSAGE_TYPE, "application/xop+xml");
options.setProperty(Constants.Configuration.CONTENT_TYPE, "application/xop+xml");
but I am ending up at an error which says
org.apache.axis2.AxisFault: The input stream for an incoming message is null.
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
Looking at the content_type, i see that type has been set to type="text/xml"
If I disable SWA, then the content_type becomes type="application/xop+xml" which seems to make sense. As you can see, I tried setting the content_type but it does not make any difference. I think I am doing something fundamentally wrong.
Can anyone suggest any pointers. Am I doing it the right way?
Regards,

Hi Amar,
thanks for your reply, i know the mtom theory, but i don't know how to do it with sap pi on proxy side!
(By the way, your link throws a 404!)
Using soap adapter with enabled "keep Attachments" option, the MTOM-Attachment is getting processed, but on proxy side, using soap adapter (keeping attachments) to call proxy, it crashes on the backend side (version 701).
I tried to make a webservice out of the proxy in soamanager, but i didn't get this working, as i have never done this. Also i didn't find an option for mtom in soamanager. I am also wondering why mtom is only supported in ws-adapter 7.10 but not in 7.11, why is this? And is it possible to use soap-adapter on OB-side and WS-Adapter on IB-side, or can i only use ws-adapter for direct communication?
Lot's of questions i am facing ;-)...
Kind regards,
Markus

Similar Messages

  • Binary Attachments - MTOM vs. SOAP with Attachments

    Hello everybody,
    i am kind of stuck by implementing a soap to proxy scenario! I wanted to use MTOM to transfer the messages together with the attachments, but until now i couldn't find out if this is possible at all using the ws-adapter with backend proxy (version 701)!
    I have seen this already:
    http://help.sap.com/saphelp_nwpi711/helpdata/de/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    unfortunately im not a abap coder, but i can see using attachments in proxys should work!
    But how? Am i forced to used soap with attachments on sending webservice? If yes, have you got an example for me?
    I would appreciate any help!
    Thanks in advance,
    Markus

    Hi Amar,
    thanks for your reply, i know the mtom theory, but i don't know how to do it with sap pi on proxy side!
    (By the way, your link throws a 404!)
    Using soap adapter with enabled "keep Attachments" option, the MTOM-Attachment is getting processed, but on proxy side, using soap adapter (keeping attachments) to call proxy, it crashes on the backend side (version 701).
    I tried to make a webservice out of the proxy in soamanager, but i didn't get this working, as i have never done this. Also i didn't find an option for mtom in soamanager. I am also wondering why mtom is only supported in ws-adapter 7.10 but not in 7.11, why is this? And is it possible to use soap-adapter on OB-side and WS-Adapter on IB-side, or can i only use ws-adapter for direct communication?
    Lot's of questions i am facing ;-)...
    Kind regards,
    Markus

  • SOAP with attachments, attachment streaming

    Hello all,
    We are currently in the process of designing an integration service that uses web services (SOAP) as the means of communication.
    There are very large binary attachments included with these SOAP messages. MTOM ja SAAJ are to be used (propably CXF).
    However, as these attachments are very large (100MB), I would like to stream the attachments "through" the integration server.
    Is this possible? Can I somehow stream the SOAP attachment from the source system directly into the target without saving it as a whole into the integrating server application?
    Thank you for all your help! All solution suggestions are apprechiated :-)

    Hi Aalap,
    In version 1 of WebLogic Workshop SOAP attachments are not supported.
    Attachments will be supported in the next version. If support for SOAP
    attachment is an important requirement for you application, you can use
    WebLogic Web Services which supports SOAP Attachments.
    Please refer to the following document for more information on this
    http://e-docs.bea.com/wls/docs70/webserv/index.html
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Aalap" <[email protected]> wrote in message
    news:3da1ebc4$[email protected]..
    >
    >
    Hi,
    Does Workshop support SOAP with Attachments? I am writing a web servicewhich
    serves files (like MS-Word documents etc) to clients upon receiving theirrequest.
    So what are the various options for sending the file to the client?
    Please help.
    Thanks in advance.
    Regards,
    Aalap Parikh.

  • Problem in webservice with Attachments

    Hi,
       I am having a simple java class with create attachment method.That method takes the byte array as argument and writes that file to the hard disk.I am exposing this method as a
    webservice,so that that webservice is used as external service in Application service.In the NW Studio there is no option to make transport type as "SOAP with attachments".Is it the right way to use byte array  in webservices.Is there any other way such as XOP,MTOM ..Can anybody help me out on this regard.
    Thanks,
    sudhir

    Hi please check the link below.
    https://app.primecontract.com/ua/webhelp/webwfp/wf_attachments_bg.html
    http://www.uiowa.edu/hr/imfo/workflow/attachment.pdf
    Murthy.

  • Can not view (some) emails with attachments

    There has already been some discussion about individuals getting the "This message has not been downloaded from the server" error.
    http://discussions.apple.com/message.jspa?messageID=4983643
    Has anyone found a solution to this problem? I am using GMail and am having problems reading (some) emails with attachments. I can read the first several lines through the preview view, but can not open (some) emails without getting the "This message has not been downloaded from the server" error.
    The problem appears to be completely random. The problem occurs sometimes after I open the email on my computer, and other times it occurs before I open the email on my computer. And sometimes opening the email on my computer does not cause any problem opening the email on my phone.
    I have seen this problem on two different phones now and have re-created the email accounts on both phone several times. But the problems keeps (eventually) appearing--for some, but not all emails.
     PowerBook G4, Macintosh 512K     iPod nano (2nd Gen 8GB), iPhone (8GB)

    So, I think things are actually sending/downloading and it's just taking time and the iphone is defaulting to the error message.
    I don't think that's the case. I have several week-old messages on my iPhone (each under 300k) that still say "The message has not been downloaded from the server."
    I've been connected to wifi for over an hour now, so that's plenty of time to downloaded these few small emails. I can read the "preview" of the message from the Inbox screen, but when I click on the message itself, I get the error.
    And, those messages with the attachments that I was able to open this morning? I can no longer open them now. Very, very frustrating.

  • Problem with attachments and antivirus.scanners

    Hi!
    Problem is: Sending any attachment from Tiger (10.4.8) mail, all attachments are removed by a virus scanner at receiving end:
    This message was modified by F-Secure Anti-Virus E-Mail Scanning.
    Tried Windows friendly, text only, repair permissions, sending under other isp etc. no help.
    If this same message with same attachment is send from next mac with Panther, it is received ok.
    Receiving company is big and wont alter their virus-scanners and the problem clearly lies in Tiger.
    Any help welcome.
      Mac OS X (10.4.8)  

    The subject of your message should have been "Problems with attachments and F-Secure antivirus" since this is not a problem with all antivirus software, only with F-Secure.
    Check this thread for a possible temporary solution when sending attachments to those who use F-Secure.
    http://discussions.apple.com/thread.jspa?messageID=2837384&#2837384

  • Why do I have trouble with attachments being stripped when sending email via Earthlink Webmail using Firefox?

    I recently built a new computer running Win 8.1. However, I have had trouble sending and receiving attachments with Earthlink Webmail on Firefox. I sometimes cannot see attachments to emails I receive, although the size of the file indicates they are there. When I try to send an email with attachments, the browser contacts Earthlink, and then the message reappears, but the attachments have been stripped. If I hit Send again, the message goes, but without the attachments. If I re-attach the attachments and hit send, they are again stripped. I contacted Earthlink support, and they told me it is a problem with Firefox. I then tried IE and was able to send the attachments without a problem.
    I would really appreciate any help as Firefox is my browser of choice.

    1. Not sure how to send an email in a private browsing window... I use Earthlink Web Mail and I cannot find anything on that site about private browsing window.
    2. Have not tried this yet, but will when I get a chance.
    3. Not sure. My old computer ran XP. Never had the problem with it. Right now, it is not connected to the internet, so can't check it.
    4. I neglected to mention... I did try IE and it worked fine.
    I do have Norton 360 installed, but it was not a problem on the XP machine.
    Thanks for your response. I have been so busy lately that I just now picked up your response. I have not had time t to try anything else.
    As far as the file type, I was trying to send pdf files. Have not tried other file types.
    Earthlink limits messages (and attachments) to 20 MB. The files were less than 3 MB.

  • Question: Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages? - Problem: I have 1400 e-mails with attachments that need to be conv

    Is there a way to create a PDF from outlook e-mail that does not embed the attachment? better, is there a way to convert the e-mail with attachement (not embeded) as pdf pages?
    - Problem: I have 1400 e-mails with attachments that need to be converted into pdf and the attachments cannot be embeded.
    System: PC Windows 7 using Acrobat X Prof. - Thank you!

    Hi ,
    There is an option of embedding index for faster search while converting email to a PDF .
    However I am not sure that will serve your purpose or not .
    I would recommend you to get in touch with Microsoft support as well .
    Meanwhile I'll work on it and get back to you in case I get a desired solution .
    Regards
    Sukrit Dhingra

  • How to send mail with attachments - ALBPM 5.7

    Hi All,
    I am new to BPM,
    Someone could help giving me a example of Send Mail with attachments in Aqualogic Studio 5.7?
    thanks,
    Renata

    nombrefichero="C:\\Temp\\test.doc"
    subject as String="Subject"
    message as String="Message"
    mailAttachment = Fuego.Net.MailAttachment(source : BinaryFile.readToBinaryFrom(name : nombrefichero), fileName : "test2.doc")
    mailAttachments[0] = mailAttachment
    correo as Mail
    correo.attachments = mailAttachments
    correo.contentType = "text/html"
    send correo
    using from = "[email protected]",
    recipient = "[email protected]",
    subject = subject,
    message = message

  • I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. Some contacts have problems opening files sent by me using Mail too. This was never a problem on pre-Intel. A real Mac **** up !

    I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?

    Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
    Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things.

  • Receiver file adapter with attachments.

    Hi
    I would like to pass a file receiver an attachment from a proxy. I have seen bits and pieces with attachments. I have read that its similar to the mail adapter.
    In the module
    localejbs/AF_Modules/PayloadSwapBean 
    module configuration:
    Parameter Name: swap.keyName
    Parameter Value: payload-name
    Has anyone succeeded and would you explain the details?
    Thanks in advance
    Ian

    Hi,
    As far as I know, receiver file adapters do not supprt attachments.
    You can use the payloadSwapBean to swap the attachment and the actual proxy payload and then send it to the file adapter.
    Don't think it will be possible to send both the attachment and the payload to the receiver  file adapter though.
    Regards
    Bhavesh

  • Tutorial announcement :: How to send a message(s) with attachments ::

    How to send a message with attachments Using Adobe Dreamweaver CS3 and Developer Toolbox...
    - In this tutorial you will use Developer Toolbox features to build a simple contact us form with the advantage to upload file with your message and send this file via e-mail as an attachments.
    Using This application will allow to:
    * insert records into database and then send them via e-mail.
    * upload files to the server.
    * send message with uploaded files as attachments.
    This tutorial contains one part
    1. insert record, and then send it by email with (attachments).
    By following this tutorial section, you will create:
    * Page for inserting records.
    * Page for thank you when the message is sent.
    :: To View the tutorials ::
    :: Online Demo ::
    Brought t you by:
    www.developer-online.com

    Open the photo, assuming it is in Photos, and then in the lower left corner under the photo is a box with an up-pointing arrow.  Tap that box, and then the photo will have a blue circle with a checkmark in its lower right corner and the word Next at the upper right.  Tap Next, then choose how you want to send the photo, by text message, email, and so on.  Simply address the method you have chosen and put in any text you want to include.

  • How do I save mail in rich/plain text with attachments?

    I installed Mavericks last night and see (as I expected) that the save mail with attachments in rich text or plain text function in Mail is still broken, as it was with Mountain Lion for the whole of its life, even through updates. Anyone know how to fix this if Apple won't?

    Hi,
    Currently we send emal notifications as html format by default. but you can change it as plain tex or rich text when you forward or reply the email.
    OR you can use this form to "vote" on popular feature requests, or to add a new one of your own:
    https://adobeformscentral.com/?f=XnF-KJVCovcEVQz9tZHYPQ
    Thanks,
    Guanshuai

  • Email with attachments QPAC: setting "From" using process data doesn't work

    Hi,
    I trying to set the "From" in the Email with attachments QPAC from a process variable, let's call it "mailagent", which is of type xs:string.
    So I use a set value QPAC, which sets the "mailagent" variable to "[email protected]". The workflow then continous with the Email QPAC.
    Which stalls and throws the following exception:
    javax.mail.MessagingException: 501 Syntax error, parameters in command "MAIL FROM:<{$/process_data/@mailagent$}>" unrecognized or missing
    Hrm. I thought, I had already used the Email QPAC this way.
    Is there some kind of magic to apply to the Email with attachments QPAC in order for it to accept process data in the "From"?
    Steve

    Yes, I'm sure, it worked for us to. But it obviously no longer does.
    Yes, "mailagent" definitely is a variable of type string, though it's of type
    xs:string. I'm no longer able to create variables, which don't feature the
    xs namespace. Which is quite confusing as I've got absolutely no idea, what the
    xs is used for.
    We are using LiveCycle Workflow 7.2.1, the Email QPAC is 7.0.2. Is this the latest version?
    Steve

  • SOAP Receiver adapter with attachments not working

    Hello,
    I have a simple synchronous scenario like this; ABAP proxy with attachments to SOAP with attachments.
    The SOAP receiver adapter has been configured with the parameters 'Do not Use SOAP envelope' and 'Keep attachments'. We create our own SOAP envelope with custom SOAP headers, so that's the reason for the 'Do not use SOAP envelope' setting.
    When we test the scenario with an attachment then we get a timeout from PI. However, when we test the same scenario without any attachment then no errors occur.
    The external webservice has also been tested with SOAP UI and it works fine.
    Do you have any clues what the problem can be? What are we still missing in the configuration?
    We did try with the adapter modules such as PayloadSwapBean and the Message TransformBean, so far without success...
    Many thanks.
    Roberto

    Hi Stefan,
    The attachments are not really big, around 150KB.
    According to the other party (Oracle Service Bus) no messages with attachments have been received. In fact it seems like those messages never leave the PI server. SOAP requests without attachments are processed successfully.
    Thanks
    Roberto

Maybe you are looking for

  • Error #1034 Type Coercion fail with registerClassAlias and nested Vectors

    I'm attempting to use flash.net.registerClassAlias and ByteArray.writeObject in order to serialize/deserialize data with static type information.  It works as you'd expect in the general case but I've run into problems with some nested Vectors that I

  • How to define the number of tab displayed in Tab page group

    Hello, I have an application with Tab Page group  with 8 tabs and the browser is displaying only 5 of thems. I have to scroll to display the remaining 3 although I have enough spaces on the screen to displayed all of them. Do you know what parameter/

  • ACR sharpening range vs. PS4 sharpening range

    I'd like to do my capture sharpening in ACR in Bridge then do output in PS4, but the Bridge Amount range of 1-150, while PS has an Amount range of    1-500; and an even more dramatic difference in "pixel" settings (ACR has .5 - 3.0 while PS has 1-64)

  • How to connect I pad 2 to skype and use the video talk ?

    can I connect I pad 2 to Skype;if yes kindly guide me how? Thanks

  • POS systems and SAP Business One

    Does anyone know of any Point-of-sale (POS) systems that can work together with our SAP Business one application in retail stores. Please can you advise us on our available POS options with SAP Business One for retail stores. Also would there be a ne