DIME format for handling SOAP attachments

Hi all,
There is a proposal (I think by Microsoft) called the Direct Internet Message Encapsulation (DIME) format to handle SOAP attachments. This is a binary format which defines how to construct a single message with multiple payloads and it is suppose to be more efficient that MIME especially for large attachments.
Does anybody know the status of this proposal?
Thanks,
Ken

Hi, I'm also looking for a DIME java implementation,
let me know if you find something
maybe we will develop it ourselves

Similar Messages

  • Mapping DataHandler for SOAP attachments

    Hi all.
    I'm working on a web service that uses SOAP attachments in WebLogic Workshop 8.1,
    but I'm having a bit of trouble testing. When I try to access the web service
    using the auto-generated client jar provided by workshop, I get the following
    error:
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.sche
    ma.binding.SerializationException: mapping lookup failure. class=class javax.act
    ivation.DataHandler class context=TypedClassContext{schemaType=['http://www.w3.o
    rg/2001/XMLSchema']:base64Binary}
    I was under the impression that the DataHandler mapping was handled by BEA. Must
    I manually map the type in order to use SOAP attachments, or am I missing another
    vital step?
    I've attached the WSDL file for this service. Thanks.
    -Brian
    [WS_Import.wsdl]

    Hi Brian,
    I just created a .jws, client jar and standalone JAX-RPC static stub client, using
    the WSDL you attached. Everything seems to work in WLS 8.1 SP2. Is this the version
    you're using? I have attached a zip containing the static JAX-RPC static stub
    client, and the .jws. To test it in the WLW IDE, you'll need to create the following
    directories, in the WebLogic Server domain directory you use for WLW:
    DCTMWebServices/attachments
    The client just sends the certificate.war file, in the DataHandler dhContent argument.
    This file is located in the domain directory, you use for WLW. The .jws saves
    the attachment into the DCTMWebServices/attachments directory.
    Here's the command line I use to run the standalone client:
    c:\bea\home1\jdk141_05\jre\bin\java -classpath classes;lib\WS_Import.jar;C:\bea\home1\weblogic\platform81sp2\server\lib\webserviceclient+ssl.jar
    -Dweblogic.webservice.verbose=true -Dweblogic.webservice.binding.verbose=true
    DTCMWebServices.consumers.standalone.stub.WLWClient 2>stderr.out>stdout.out
    Regards,
    Mike Wooten
    "Brian McLoughlin" <[email protected]> wrote:
    >
    >
    >
    Hi all.
    I'm working on a web service that uses SOAP attachments in WebLogic Workshop
    8.1,
    but I'm having a bit of trouble testing. When I try to access the web
    service
    using the auto-generated client jar provided by workshop, I get the following
    error:
    java.rmi.RemoteException: web service invoke failed; nested exception
    is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.sche
    ma.binding.SerializationException: mapping lookup failure. class=class
    javax.act
    ivation.DataHandler class context=TypedClassContext{schemaType=['http://www.w3.o
    rg/2001/XMLSchema']:base64Binary}
    I was under the impression that the DataHandler mapping was handled by
    BEA. Must
    I manually map the type in order to use SOAP attachments, or am I missing
    another
    vital step?
    I've attached the WSDL file for this service. Thanks.
    -Brian[brian2.zip]

  • Allowed file formats for attachments

    Hi,
    Can you tell me what are the allowed file formats for the attachments on the SDN wiki?
    Regards,
    Ina

    Hi,
    Thank you for reaching out.
    The types of files which are allowed to be uploaded to the wiki are:
    GIF
    JPEG
    PNG
    Regards,
    Moshe.

  • Handling SOAP faults

    hello,
    I created a java control which calls an external webservice. How do you handle
    SOAP fault messages coming back from the webservice?
    Weblogic just throws an java.lang.reflect.UndeclaredThrowableException since it
    cannot parse the expected XML message.
    For example, when I call Logon() via the java control. The WebService should
    reply with a LogonResult object(in xml format). However, if there's an error,
    the WebService returns a SOAP Fault message. Since this fault message is not
    in the format of the expected LogonResult xml schema, weblogic throws an error
    (since it cannot create the LogonResult object) and the caller just receives the
    UndeclaredThrowableException without knowing any of the contents within the SOAP
    Fault.
    I'd like to be able to send back the SOAP fault content back to the calling function.
    I've tried throwing an exception from the java control handler, but it gets swallowed
    up by the SOAP Handler so I still get an exception with no content.
    any info is appreciated.
    thanks,
    Tom

    Hi,
    Do you get answer for that?
    I had similar problem and solved this in this way:
    In this java.lang.reflect.UndeclaredThrowableException handler is possible to get also SoapFault back:
    catch (java.lang.reflect.UndeclaredThrowableException e){
    RemoteException re = (RemoteException).getUndeclaredThrowable();
    ServiceControlException sfe = (ServiceControlException)re.getCause();
    SoapFault fault = sfe.getSoapFault();
    XmlObject[] objs = fault.getDetailContents();
    // more procssing here to get Soap detailed error
    Maybe this helps.
    rgrds,
    H

  • How to deal with SOAP attachments?

    Is there any information available on how to work with SOAP attachments? I am looking
    for a feature similar to what is available in other products where you can take a
    byte[] and map to image/jpg, application/octet-stream, etc... and have the tool create
    the appropriate message formats. How would I do this using WL Workshop? I could
    not find anything in the docs... is this supported?
    Thanks,
    Bob

    Easiest thing is to encode the contents of the binary object in the XML
    message as you suggest.
    I'd like to hear more about what you are trying to do as well -- we're
    planning on adding support for attachments in the next release, and I'd like
    to make sure we do it in a way that meets your needs.
    -C
    "Bob Hayden" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am evaluating the capability of returning and consuming image/fileattachments through
    a web service. This is one of our high priority integration requirementsand must
    be available somehow through the framework we choose. Other productshave ways
    to do this through an IDE... if WorkShop is not going to directly supportthis then
    does anyone have any suggestions or examples on how this can be done in away that
    is still intuitive for a WorkShop user (in other words without rolling upyour sleeves
    and digging into JAX-RPC)? I suppose one could base64 it and add it tothe WorkShop-generated
    message as a String using the return XML map, but I would prefer toinvestigate a
    more standards-based approach.
    Is it just me or does the lack of support for SOAP attachments seem to bea serious
    missing piece from WL Workshop?
    -Bob
    "Raj Alagumalai" <[email protected]> wrote:
    Bob,
    WebLogic Workshop does not currently support SOAP attachments. However,
    please note
    that if you are developing your Web services using the APIs and services
    provided
    by J2EE and WebLogic Server directly, WebLogic Server does support SOAP
    attachments.
    Please refer to the following document for more Workshop FAQ's
    http://dev2dev.bea.com/resourcelibrary/faqdetail.jsp?productType=weblogic+w
    orkshop&highlight=faq
    >>
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Bob Hayden" <[email protected]> wrote:
    Is there any information available on how to work with SOAP attachments?
    I am looking
    for a feature similar to what is available in other products where youcan
    take a
    byte[] and map to image/jpg, application/octet-stream, etc... and havethe
    tool create
    the appropriate message formats. How would I do this using WL Workshop?
    I could
    not find anything in the docs... is this supported?
    Thanks,
    Bob

  • Retriving .doc and .rtf files in soap attachments

    Please help me
    I'm using JAXM to retrive soap attachments
    When i retrive txt files (.txt) it retrivs the content of the document
    without any problem but when i try to retrive .doc or rtf
    it gives content as
    java.io.FileInputStream@587c94
    (retrive attached files which are recived from client)
    how do i get the content from word or rtf document
    this is the way i tried to get the content
    while (it.hasNext()) {
    AttachmentPart ap = (AttachmentPart)it.next();
    contentType = ap.getContentType();
    content =(String)ap.getContent();
    p.println("content---->"+content);//wrriting to text file
    System.out.println("*** attachment content: " + content);
    thanks nams

    Here is the code I used to send and receive a PDF file as a SOAP attachment. Note that if the sender uses a DataHandler for the attachment's content, there's no need to set the MIME type explicitly because the DataHandler does it for you.
    * Sender
    // create the data source and data handler
    DataSource source = new FileDataSource("form.pdf");
    DataHandler handler = new DataHandler(source);
    // create attachment for message
    AttachmentPart attachment = message.createAttachmentPart(handler);
    // set content id (optional)
    attachment.setContentId("enrollment_form");
    // add attachment to message
    message.addAttachmentPart(attachment);
    // send message
    providerConnection.send(message);
    * Recipient
    public class Receiver extends JAXMServlet implements OnewayListener {
       public void onMessage(SOAPMessage message) {
          // get attachment
          Iterator it = message.getAttachments();
          AttachmentPart attachment = (AttachmentPart) it.next();
          if (attachment.getContentType().equals("application/pdf")) {
              // read contents into byte buffer
              ByteArrayInputStream contentStream =
                  (ByteArrayInputStream)attachment.getContent();
              // use standard Java I/O methods to save in file
              int bytesToRead = contentStream.available();
              byte[] buffer = new byte[bytesToRead];
              contentStream.read(buffer);
              // write buffer to new file
              FileOutputStream file = new FileOutputStream("form.pdf");
              file.write(buffer);
              file.close();
              log("Attachment " + attachment.getContentId() + " with type "
                  + attachment.getContentType() + " written to form.pdf");
          else {
              log("attachment content has MIME type " + attachment.getContentType()
                + ", Java type " + attachment.getContent().getClass());
    }

  • Handle SOAP req within JAVA APP.

    Hi expert,
    My self Preet, I have to built JAVA Application to handling charging over SOAP protocol.
    I have XML format, where 4-5 parameters and dynamically change and some are static.
    As now, I am using JAVA API, which calls URL (made in DOT net) with dynamic parameters code of DOT net made XML format and post this to operator and respond that status to my JAVA API.
    But I want to remove the dependency of that DOT NET's code so pls help me to making JAVA API to handle SOAP req and there response too.
    Regards,
    Preet
    91-98033-33356

    Unless you work for a Big company no one will know and
    Sun definitely will not care. I've spoken will reps at Sun about this. Gulp!
    White collar crime, including time theft, probably exceeds all other crime, at least in the US. And at least in some circumstances some employees are lead to believe by other individuals that such practices are SOP. However, even if directly order to take such action by a boss it certainly doesn't free you from criminal prosecution and at best only allows for a defense in a civil proceding.
    Professionally I won't allow nor condone practices that break criminal or civil precendents.
    Personally I refuse to follow orders or suggestions that break criminal or civil precendents. Nor will I allows others to do so in my presence. Doing so opens me up to prosecution. I certainly would never do that for a job.
    Delivering the jdk to a customer is simply a matter of convenience. At the very least doing that exposes one personally to firing for cause. After all if your boss doesn't specifically order you (in writing) to do this who do you think will get the blame? In addition all parties involved, your current employer, the customer and Sun could potentially try to sue you. Even if you win, the legal costs would be staggering. How much money are you willing to spend for convenience?
    If you are so sure about the word of the 'reps' then I would suggest that you get one of them to put it in writing (not email.) Even better get more than one.
    If you want a customer to use this then simply have the customer download the jdk. And actually I expect that the legalities would probably be fulfilled if you were acting as an agent for the customer (but that status depends on the contract with the customer.) You do have to download it for them though (not as yourself.)

  • How to Change the default format for differnt language both in java and SQL

    Hello,
    I am using SQL Anywhere in my application.And in my java client application user can log in with their preferred language like English,French,German,Chinese,etc....When even the user log in to the application the data from the database will be displayed with respective to the language.But when i tried to see the dates in Interactive SQL all the dates r in the format of '2008-12-5 16:44:10:673' but say for example for Chinese it will be displayed as '08-12-5 16.44.10' and for some other language it will come in some other format(which is standard format for those language).
    Mean while i am using java client.When ever i am displaying a date it will be with respective to the language using Locale and date format classes.When i am displaying the date for Chinese in GUI it will show the date as '08-12-5 &#19979;&#21320;4:44'. In summary
    1. For Chinese,the default date pattern from SQL Anywhere date base is '08-12-5 16.44.10'
    2. For the same language date using java code is displaying as '08-12-5 &#19979;&#21320;4:44'. and i am getting the time format pattern as 'ah:mm'.I tried to change the display format in regional settings but no change in display.
    Is there any way to make both the time format as same?
    Please help me to solve this issue!!!
    Thanks in Advance!
    Arun

    pon_arun wrote:
    Hello masijade,
    I did as u said but still the date display is not the same......And I'm telling you that it doesn't matter. What "format" the DB likes to display a Date in when it displays it, is completely irrelevant to how you display it in your GUI.
    A Date does not have a format. A String representation of a Date does.
    As long as you use getDate from ResultSet and setDate from PreparedStatement you do not have to worry about this. Those methods will handle dates to and from the DB themselves. You can then use SimpleDateFormat to display the Date anyway you want to.
    Just because you show the Date one way, and the DB shows it another, does not mean that it is not the same date. Don't get hung up on how the String representation of the Date looks.
    Edit: If you simply want to be able to do "Human Comparisons" then look at the SQL TO_CHAR function (for Oracle, for other DBs the function name may vary). And for Java, read the API docs for SimpleDateFormat (as already intimated above).

  • How to handle multiple attachments in XI mail sender adapter?

    Hi,
    is it possible to handle multiple attachments in a mail receiving in XI?
    Our customer wants to send us mails with multiple attachments and we have to convert each attachment to an idoc.
    But as I know XI (receiving mails) can handle only a single attachment in a mail. Is it true?
    Any ideas?
    Thanks a lot!
    Regards
    Wolfgang

    Hi Wolfgang,
    Well, although I have never tried a scenario of picking more than two attachments from one mail, I wonder if its possible in the first place!
    Here are the reasons why I think it is possible:-
    It is not mentioned anywhere in the SAP Notes for mail adapter that it is not possible.
    *It is not mentioned anywhere in the SAP help documentation that it is not possible
    *Also, I think if the receiver mail adapter can create more than one attachment, the sender should be able to pick more than one!:)
    Have you tried defining a PayloadSwapBean module to pick up more than one attachment?
    Just try experimenting with this particular part of the module code:-
    Content-Disposition: attachment;filename="MailAttachment-1.xml"
    Content-Description: MailAttachment-1
    I think even the following weblog might be able to help you to a certain extent:-
    "Receiving E-Mail and processing it with ABAP - Version 610 and Higher" - /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    Regards,
    Sushumna
    Regards,
    Sushumna

  • Best format for video, etc.

    I have downloaded videos from my camcorder and have them on the hard drive for editing. I want to make a DVD with them but I also want to have an electronic version of the movie as well to keep on my hard drive, but in a format that is 1) popular (not likely to go out-of-style with changing technology), 2) universal (plays on Mac and PC), and 3) no loss of quality.
    First question: Is there such a format?
    Second question: If so, what is it? Do I have to download something to convert to it?
    Third question: What is a good link that describes the different formats for someone who has limited understanding of such things?
    I also have ripped some previously edited home movies from a DVD using MacTheRipper and currently have them as .vob files. They need to be converted into something that can be viewed. What is the best program to do the same things mentioned above (1, 2, and 3) for a hard drive copy and where can I get it?
    Thanks!!! Have a great weekend!

    currently have them as .vob files. They need to be converted into something that can be viewed.
    You need to convert the VOB files back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    which is free, but you must also have the Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.

  • ALV Report for Handling Units

    Hi,
    In SAP, the standard report exists for the selection of handling units (HUMO). The requirement is that in addition to standard output the report should also display  for KMAT materials the serial number associated with the respective HU, catalog number and special stock category.
    -Depending upon the selection criterion, the HU assigned with the material will be identified for the materials.
    -The HU contains the catalog number in the contents field of status tab and will be displayed in output.
    -The serial number assigned with the HU will be picked up from the HU and will be displyed in the output.
    1. The program will first find out the HUs for the material. From the HU, catalog number and serial number will be traced.
    2.The output should be in ALV format.
    3.The output will display HU number, KMAT number, catalog number, serial number, quantity, special stock indicator, plant, Storage location, Warehouse number, and bin-location.
    Can Any body tell me what are the table involved in this ALV report to display HU number, KMAT number, Special Stock Indicator, Warehoure Number and Bin Location.
    Thanks,
    Bala.

    Hi ,
          For Handling unit tables are VEKP,VEPO also use object LE_HU in transaction SARA .
    For Warehouse number check out table t300,t320 or view v_T320
    For Bin location table T303,T303T or view V_T303
    For special stock determination T434P
    FOR KMAT - table MAST ,STKO ,STPO.
    Please reward if useful.

  • How do I change the default file format for saving files in Preview

    I often take screen clips and save them as files to my desktop, then upload them to my website or include them in emails. The default file format for Preview seems to be TIFF, but I'd prefer jpg. How do I convince Preview to use jpg as the default file format?
    TIA,
    Thad

    I should have been a little clearer...
    If I'm emailing a screen-clip, I can just paste it right into the email, but I post on a lot of discussion boards and it's often nice to be able to include a screen shot in those. My preferred way to do that is to post the clip at my personal website and then put a link in the post. It gives me the ability to delete the image whenever I want (a plus for any security freak) and it works on every discussion board I know. Some boards allow attachments, some don't. Plus I don't want to have to remember different d/b file attachment procedures. Anyway, when I make a screen-clip, I need to temporarily save it (usually to my desktop), then ftp it to my website. I use Preview to do that. It's simple. But I'd like it to default to .jpg instead of .png or .tiff. (FWIW, I just tried it and the default was .png, but I swear I did something similar earlier that defaulted to .tiff when I first tried to save the newly-created file).

  • Getting correct field length when creating formats for delimited flat files

    Using Data Services 3.2 to pull in tsv and Excel source files.
    When creating a new format for each file, DS tries to intelligently set the field size for each column. However, it seems to sample only a portion of the file. The end result is that it often determines too short a length for a field.
    Is there a way to force it to scan an entire file before it sets the field length? Or alternatively, how to get it to at least throw an error instead of silently truncating my data?

    I am not aware of any way to force DS to scan the whole file, or to log a warning when it truncates.  The field sizes DS sets by using a sample of the data is only really to give you a starting point, you need to try and determine the maximum possible lengths preferably from someone who understands the source of the data or through profiling.  But the profiling method will obviously only be based on the data you have at the time of profiling, new data added to the source later could exceed the field lengths.  The way I prefer to handle this is to set all the field lengths to longer than expected, eg. varchar(999) and then use a validation transform immediately after reading the file to check for any fields that exceed the maximum allowed for the target system and send these to an error file/table.

  • Different formats for each line in enums & rings?

    I don't know if this one is possible but I can't figure it out.
    Can you make an enum or ring control have a different format for each selection? 
    E.G.:
    Selection 1 [default]
    Selection 2 [test mode]
    Selection 3 [optional]
    Selection 4 [optional]
    I've tried the formatting options and property nodes, no luck.  Maybe there are possibilities with control customizing I'm not thinking of???
    Thanks & Regards,
    K
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

    Hi K.
          I don't think it's possible to have those text properties vary in a text-ring, but you might be able to accomplish your goal using a pict-ring - using images of formatted text.  In the example (attached) Paint was used to create the pictures then import them into the pict-ring.  Here Unclebump shows how to use "Draw Text at Point.vi" to create formatted text in a picture control, though, I have no idea how to copy such pictures out of the pictures control!
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    FormattedTextPicRing.vi ‏14 KB

  • Format for certain columns in list view control

    I have a list view control and I would like to format the alignment for certain columns. I heard that the only way you can do this is by formatting the cells in excel. I tried this with no success. Can someone please give me step by step instructions on how to achieve this. I am currently allowing Xcelsius to handle my formatting for money. Is it possible to have Xcelsius handle the money formatting and have excel handle the alignment  formatting. I am open to whatever works at this point. Also I am using Xcelsius 2008 (Build Number 12,2,1,66).
    Much Thx

    Hi,
       In list view control you can format the entire row only, not a certain column.
       Go to property>Appearance>Text Tab>select Header>Format selected text->select the format.
      For width change: Property> Layout Tab>check custom column width the click the icon and enter width in pixel.
    Regards,
    Senthil K

Maybe you are looking for

  • How to making login id as one field in the coding

    hi, I need to make the id(login in sap) as one of the field and that should be automatically assigned to it once we login . wht kind of modifications to be done for this.....pls help me... Saurabh.

  • Port Forwarding for Security Cameras

    I have a Cisco RV220W that I am trying to set up to view the store security cameras remotely. I can view the cameras when connected to the LAN but not with a WAN connection. The Video recorder is an ADT system.  Always Allow RTSP:TCP Enabled Any 192.

  • IMac freezes when syncing iPod touch

    My iMac freezes (spinning beach ball) when I attempt to sync iPod Touch, using iTunes 10.5.  Otherwise, iMac, iTunes, and iPod Touch work fine. iPod Touch 3rd Gen., IOS 4.3 iMac 21", new in Dec. 2010 Snow Leopard

  • Where to find cpu code

    my Athlon64 says: ADA18?AEP4AP CAAMC0343MPM 4156497C40102 What date was it made? What revision?

  • Adding the search help in program

    hi i want to add a search help in program for a particular field of a parameter how to do this?