OSB: Retrieving file from disk and sending it via MTOM

Hi,
I'm trying to retrieve binary file from OSB local disk and than send it via MTOM.
I've created a JCA synchronized reading file adapter. I've unchecked the "native message" option to disable schema translation. The files content seems getting picked up into <wsdl:part name="opaque" element="opaque:opaqueElement" />. I don't like the fact that it is encoded in base64. How to disable base64 decoding?
I've tried to set the "native message" to some binary element, like <xs:element name="Attachment" type="xs:base64Binary" />. Then I get the "Schema translation failed" exception every time. What my native message should be to pick up a straight forward binary file?
Can you guide me please how to create a file OSB transport service that would be able to read files?
Also, if I obtain the file's content, how do I send it from proxy to proxy as a mtom? All of my proxy chains have enabled MTOM and pass binary as reference, but when I look up the messages transmitted, the opaque element seems to contain straigth forward base64 content, not binary reference.
I would appreciate any help regarding any of this topics.

Hi Veronica,
there is absolutely nothing in my $body variableI did a quick test, the reference for the binary content goes to the $body variable...
Service type = Messaging Service ... Transport = file
Content of body after picking up a bmp image...
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<con:binary-content ref="cid:-63889258:138079cb851:-7d8e" xmlns:con="http://www.bea.com/wli/sb/context"/>
</soapenv:Body>
Cheers,
Vlad
It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
https://forums.oracle.com/forums/ann.jspa?annID=893

Similar Messages

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • How to Convert file to excel and send it via email

    Hi experts.
    Can anyone tell me how to convert a spool data in to excel format and the send it through e-mail......
    We have a function module for converting spool data to pdf and send it through mail ie FM CONVERT_ABAPSPOOLJOB_2_PDF,
    but is there any FM for Excel ....
    Kindly help me.....
    Thanks
    Naveen

    you can send a file as an exel attachment in mail,
    step 1:
       send file data to an internal table.
    step 2:
       loop through the internal table(itab).
        concatinate itab-field1
                          abap_char_utilities=>horizontal tab
                         itab-field2
                         abap_char_utilities=>horizontal tab
                        abap_char_utilities=>vertical tab
            into t_attachment-line
    append t_attachment
    step 3:
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.  
      w_doc_data-doc_size =
      ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'XLS'.
       t_packing_list-doc_size = t_packing_list-body_num * 255.
      t_packing_list-obj_name   = 'Attachment'.
      t_packing_list-obj_descr  = 'mail xls'
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
        MOVE: mail id TO t_receivers-receiver,
        'U' TO t_receivers-rec_type,
        APPEND t_receivers.
      CALL  FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = it_message
          receivers                  = t_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    check the FM and creat the internal table types
    by this way you can send excel as an attachment 
    but problem in sending EXCEL attachment is if the data crosses the limit of excle file the file will not open.

  • I have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    i have a windows 7 desktop with an external hard drive setup on my home network, will i be able to access this on my home network to save and retrieve files from my mac air?

    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972

  • Why can't I open and retrieve my files from iPhoto and my address book after importing the files from my Power mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    Why can't I open and retrieve my files from iPhoto and my Address Book after importing the files from my Power Mac G5 to my new Mac Pro? I get a warning that says the new OS on my Pro doesn't open files from a Power Mac. Any idea how I can fix this?

    For your addressbook, export the files to vCard on the PowerMac, then bring them over to your Mac Pro. For your iPhoto, copy the Users -> yourname -> Pictures folder to your Desktop on the Mac Pro, and open iPhoto on the Mac Pro holding the command and option keys.  Select the library file from that Pictures folder and open it.  It should import all the pictures into iPhoto as part of the rebuild process.  Other PowerPC to Intel migration issues are covered here: https://discussions.apple.com/docs/DOC-2295

  • How to retrieve xml file from BLOB and display on browser with css/xslt

    Hi All,
    I am new to xml. I am storing my xml file into BLOB in database. Now in my jsp page I want to retrieve this xml file from BLOB and display in HTML/CSS/XSLT form...
    Pl. guide me.. any docs..?? Logic...??
    Thanks in Advance.
    Sandeep Oza

    Hello Sandeep!
    I'm not familiar with jsp but logic should be as follows:
    -in jsp page instantiate XML parser
    -load specified BLOB into parser
    Now you may traverse the XML tree or you might load XSL file and use transform method to transform XML according to XSL file.
    I have an example where I'm selecting XML straight from relational database and then transform it using XSL into appropriate HTML output, but it's written in PSP.
    You can try http://www.w3schools.com/default.asp for basics on XML, CSS, XSL. It's easy to follow with good examples.
    Regards!
    miki

  • Cannot delete file from disk after emailling that file like attachment

    After i send some file from disk in Mail like attachment i cannot delete that file from disk unless i quit Mail. Like Mail is still using a file. Of course, that mail is in Sent mail, not in outbox.

    This deeper than that. I created another account on the same iMac and it works in Harmony with my other devices and Documents in the cloud. I can only imagine the icloud account is somehow corrupted (I am on my macbook not iMac at the moment). There have been no updates to the Calendar, Contacts or Documents since early January on that account. I have spent 1hr on the phone with support and they were baffled as well. Only thing I can gove as insight to the problem is this, I was on the Mac Mini which was backed up on Time Machine. about 4 or 5 months ago I had to completley restore the Mac Mini becasue of the never ending circle on the load screen. The Backup failed to work it kept loading the issue and 4 or 5 times the circle of death kept coming up I would subsequently wipe the Mini and go further back in the back up until I go a copy that worked.  I then loaded the Time Mache back up into my NEW iMac and wnet from there. It took about a month for this problem I am detailing above to start happening. It maybe a corrupt file loaded from the backup into the new iMac causing this problem. Best answer I can think of on my own???

  • When I save a CS6 InDesign file as an .idml file InDesign crashes and sends a report to Adobe.

    When I save a CS6 InDesign file as an .idml file InDesign crashes and sends a report to Adobe.
    When I restart InDesign the .idml file is in the directory as well as a locked InDesign file.
    I cannot open the .idml file, instead I get the message:
    Cannot open "" file. Adobe InDesign maynot support the file format,
    a plug-in that supports the file format may be missing,
    or the file may be open in another location.
    I can however open an InDesign .idml file that was saved from InDesign CC software.
    InDesign CC software is also unable to open the .idml file that I created in CS6.

    It seems to be a corrupted IDML file. Does it happen with every file or only with that one.
    What is the content of that file? Did you embed images or graphics or did you ink them? Size?
    Maybe that this would help you: Re: InDesign 6 is crashing when attempting to open a particular document. All others are opening OK.

  • I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • How do I cancel the distance between the numbers? I'm having trouble copy phone numbers from the phone book and send it via SMS This problem I've found in the Arabic language, numbers appear in reverse Please help System 6.0.1

    How do I cancel the distance between the numbers?
    I'm having trouble copy phone numbers from the phone book and send it via SMS
    This problem I've found in the Arabic language, numbers appear in reverse
    Please help
    System 6.0.1

    MPEG-4 should not be used in FCP unless it is converted first or optimized in the application.
    Trash your preferences. Trash your project render files. Switch off background rendering. Do not re-render. Export your projects.
    Ignore the last frame and first frame indicators.

  • I tried to reinstall iCal from Disk and get an error

    I deleted info.plist from my iCal package. I had read somewhere that if I deleted that all old files in my iCal would be deleted. But instead what happened is I get an error when I try to start "2008-05-19 15:29:46.693 iCal[9051:10b] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting logout" So then I tried to reinstall iCal from Disk and get the error "The Installer could not validate the contents of the 'iCal' package. Contact the software manufacturer for assistance"

    lizesc,
    Welcome back to Apple Discussions.
    I deleted info.plist from my iCal package.
    Just for the edification of other users, you should never alter any files inside of an application package.
    Drag your current copy of iCal to the trash, and then follow these steps to reinstall iCal:
    1. Insert your Leopard Installation disk into the computer.
    2. The disk will appear on your desktop.
    3. Double click on the "Optional Installs" folder.
    4. Double click on the "Optional Installs.mpkg."
    5. Click on (Continue) in Introduction.
    6. Click on (Continue) in Software License Agreement.
    7. Click on (Agree) to agree to the terms of the software license agreement.
    8. Click on the disclosure arrow ▶ next to Applications.
    9. Select (✓) iCal.
    10. Click (Continue).
    11. After iCal has been reinstalled, download and install the OS X 10.5.2 Combo Update.
    ;~)

  • Can I delete files from disk that I removed just from LR in error?

    Hi, this is a really silly error.
    I've just deleted 100s of raw files from lightroom, useless stuff that I should have deleted at the time but was too lazy to do so. Am now trying to purge all the rubbish and it's taking me days (it's from the last 3 years or so.)
    This morning I just deleted several hundred images I went to empty the trash can and it's already empty and it's only then that I realise I've been just deleting the files from Lightroom and not from the disk. It's several hours work, is there any way I can now identify in the finder folder which images are not in LR, because these are the ones I want to get rid of for good. I don't want to keep them there taking up valuable memory space or restore them to LR and have to do it all again. Help!
    Any advice much appreciated.
    Emma
    Mac OSX 6.3
    Lightroom 2.7

    Emma,
    I would do the following:
    BACKUP YOUR CATALOG
    Synchronize the folder(s) in question (possibly to top level parent folder)
    - Deselect "Scan for metadata updates" during synchronization
    - Select "Import new photos" during synchronization
    Delete the photos ("Delete from Disk") just imported by Synchronize from within LR (from view "Previous Import") after each import (if it's more than one folder)
    This should delete all the images not previously in your catalog but existing in your folder(s).
    Beat Gossweiler
    Switzerland

  • Bug? iTunes 10 doesn't remove files from Disk sometimes

    Hi all.
    I think i figured out a bug in iTunes (10).
    Sometimes, when i select a file from library and press cmd+backspace to delete a file from disk to put it in trash, iTunes won't put the selected file into the Trash. Sometimes it does, sometimes it doesnt. Its going to be removed in the Library but its still on Filesystem so i can add it once again, and try it 2-3 times till its finally gets deleted.
    Any ideas?!
    EDIT:
    found another thread with same problem
    http://discussions.apple.com/thread.jspa?messageID=12530336&#12530336
    Message was edited by: koDiacc
    Message was edited by: koDiacc

    OK ... help myself with asking a friend ...
    Search for a few (approx. 20) files manually then iTunes found the rest itself!

  • Cannot retrieve files from Time Machine.

    I cannot retrieve files from Time Machine. I can enter it, but the arrows don't seem to function and when I click on a date/time, nothing happens.

    I don't know what you mean by "arrows". After Entering TM, put your pointer over one of the coloured (usually purple) dated bars at the right of the screen. That will bring (usually the desktop) for that date to the front. Navigate in the usual way to find the old file, select it, and press the big Restore button on the bottom left of your screen. As I remember it, a copy of that file will appear beside the current original with something like "Restored" added to is title. When you quit TM (Cancel) that restored file should appear beside its current version. (Or, if it's host folder has been deleted, smewhere else but I can't remember where - search for it.)

  • Can I retrieve files from a modern Mac Backup drive to a PPC Mac?

    Can I retrieve files from a modern Mac Backup drive to a PPC Mac?  I have been having problems with my Macbook Pro not starting up.  I need to figure out how to access files with my PPC Desktop; if possible. 
    What type of files can I access and what type I cannot?
    My Macbook Pro: MacBook Pro, OS X Mountain Lion (10.8.3), 750GB HD, 2.2 GHz, 6 GB RAM
    My PPC: Power mac G4/Upgraded 1.2GHZ /800+RAM/3 HD =400+ GB, Mac OS X (10.4.2)
    Thanks in advance,
    God bless 

    You will need software that is compatible with the data files on the backup drive, ie. if they are .doc files you will need Word (or a substitute).
    You don't mention what type of files are on the drive so it is hard to be specific.

Maybe you are looking for

  • Best practice for backing bean population? (also, ActionListener RANT)

    Hello, I am about 3/4 of the way through development of a small to medium size JSF application. Sometimes I really like JSF, but much of the time I am left puzzled or frustrated for hours trying to find workarounds to JSF's bugs/glitches and design f

  • I want to call popup in the loop

    Hi, for example: I selected the N no.of rows in a table and click the button based on that  N no. of pop up i want to display.\ For this I got the selected elements in the table.here i have condition loop at wa to itab. if field ne empty. LO_WINDOW->

  • Randomize a Movie Clip Animation Using Actionscript

    I'm new to actionscript. I've been working on this sort of sunset-like sequence in Flash. I've created a movie clip of a star that has a sort of twinkle animation. It consists of 3 layers. What I want to do is randomize this animation so I can use th

  • Do I have to render Livetype footage

    Hi, I made a simple text animation which will be shown during a video. The project settings are pal 4:3 pixel aspect 1,42. When I use the animation in a pal anamorphic project it needs rendering. Is this normal?

  • Syncing Blackberry 8320 to Microsoft Outlook

    I'm not sure if this is possible....it seems like it should be.  I just noticed that when I sync my BB to outlook, it is not syncing old entries.  It shows correctly on my BB, but past dates on my outlook calendar are incorrect (still showing events