Axis 1.2 dime and mime attachments.

Hello !
i got web service which receives an attachment from .NET service as DIME , adds this attachment to it's own response and sends back to client which accepts only MIME attachments.
When client receives attachment some data seems to be lost, if original file size were 356 000 bytes , client receives only 208 000 bytes.
would be glad to hear any solutions how to solve this! ^^,
Thanks in advance !
code looks something like that :
     MyWebService service = new MyWebServiceLocator();
     MyWebServiceSoap port = service.getenotarMyWebServiceSoap(new URL(serviceurl)); // .NET setvice url
     org.apache.axis.client.Stub stub = (Stub) port;
     stub.setTimeout(1000 * 60);
     stub.setUsername(login);
     stub.setPassword(pwd);
     stub._setProperty(AxisEngine.PROP_DOMULTIREFS, new Boolean("false"));
     stub._setProperty(Call.ATTACHMENT_ENCAPSULATION_FORMAT,Call.ATTACHMENT_ENCAPSULATION_FORMAT_DIME);
     DocumentInfo dinf = port.downloadDocument(dokument_id); // gets document from .NET service
Object[] attachments = stub.getAttachments();
MessageContext.getCurrentContext().getResponseMessage().getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME);
try{
               AttachmentPart ap = (AttachmentPart)attachments[0]; // always returns only 1 attachment .
MessageContext.getCurrentContext().getResponseMessage().addAttachmentPart(ap);
               stub.clearAttachments();
catch (AxisFault e){
               throw e;
          }

It was a classpath issues manage to resolve it
with this additional setting :
CLASSPATH
.;%JAVA_HOME%\bin;%AXISCLASSPATH%;%CATALINA_HOME%\common\lib\xerces.jar;%CATALINA_HOME%\common\lib\activation.jar;

Similar Messages

  • I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?

    I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?

    I've just updated my iPad and can't open mime attachments can anyone help in simple English h please?

  • How do I plot a y axis on the left and right in DIAdem/VIEW (version 11.0)?

    I am trying to analyze flight data, and I would like to analyze plots of certain parameters so that they share an x axis. It is necessary to view these using two different y axis, on the left and right. How do I do this in DIAdem (version 11.0) in the VIEW tab? Is this possible to do in the VIEW tab?

    myocom,
    You can highlight random points in DIAdem as well. 
    Here is an example:
    Use the cursor to move to the point you wish to highlight.
    Press the "Set Data Point and Flag" icon on each data point you wish to highlight
    When you are done selecting points, press the "Flags: Copy Data Points" icon - that will copy all X/Y coordinates into two new channels
    I created a REPORT Layout using the original data and the highlighted random points (I added the actual point Z-value above the point, they look strange when written at the exact point). I attached the layout for your reference.
    The complete task took 3 minutes from loading the data to finishing and exporting the REPORT layout. If you have a REPORT layout already, this will take less than 30 seconds ...
    I am not familiar with Matlab, so I can't compare how this works in DIAdem vs. Matlab. You can add the combine the complete process in a Script and it will automatically create this kind of report after simply selecting a few data points in VIEW and then pressing a button ...
        Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."
    Attachments:
    Report with highlights.zip ‏5 KB

  • Mime attachments in Mail from two mac users

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

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

  • Mime attachments in mail

    Whenever I receive emails from questions or invoices from Ebay in Mail OS10.4.7 they come as mime attachments which can't be viewed in the message unless I open them with another app like text edit . Is there something in Mail to set up to view these ? I couldn't find anything and don't believe I had this problem in Panther with ebay messages. Mail viewing preferences is set up to view HTML. Text encoding is set to automatic. Is there anything I'm missing? This doen't seem to be an Ebay problem since when I go to my webmail account the HTML message views fine there. This has been very frustrating for me as I use ebay a fair amount.
    thanks, Craig
    G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ   Mac OS X (10.4.7)  

    Whenever I receive emails from questions or invoices from Ebay in Mail OS10.4.7 they come as mime attachments which can't be viewed in the message unless I open them with another app like text edit . Is there something in Mail to set up to view these ? I couldn't find anything and don't believe I had this problem in Panther with ebay messages. Mail viewing preferences is set up to view HTML. Text encoding is set to automatic. Is there anything I'm missing? This doen't seem to be an Ebay problem since when I go to my webmail account the HTML message views fine there. This has been very frustrating for me as I use ebay a fair amount.
    thanks, Craig
    G5 Dual 2.5GHZ, 15 TiBook 1GHZ, I.25 dual G4 MDD, 15G ipod, Beige G3/500GHZ   Mac OS X (10.4.7)  

  • MIME Attachments Weirdness

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

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

  • How do I open Mime attachments in emails

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

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

  • Getting MIME attachments in emails

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

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

  • Mime Attachments in Hotmail

    When I recieve mime attachments in Hotmail, the slide-show viewer shows the pictures, but the pictures won't load in the body of the email.
    Microsoft's Help Center tells me to update Internet Explorer to fix the problem. Hello?? IE hasn't been supported for years, and I TOLD them I'm on Mac's Safari...
    Does anyone have a solution to this?
    Thanks,
    ShawnR

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

  • Display of MailMan MIME attachments too wide

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

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

  • Excel files become mime-attachments. Why?

    My excel files become mime-attachments when I send them. My clients cannot open those mime-attachments. What happened? I used to be able to send excel files without any problem. Do I have a virus?

    You posted this in the iPhone forum... is this actually a problem involving the MacBook Pro listed in your profile, or are you somehow getting Excel files on your iPhone and sending them from there?

  • LabVIEW Mailer with MIME attachments

    Here is the mailer vi i've written, it's based on the mailer vi i found in info-labview list archives, at http://labview.pica.army.mil and i have implemented MIME attachments (base64 encoding only) with some help of some LabVIEW-ers, as explained in VI info. I'd like to hear your comments and know any problems it can give.

    Sorry, forgot to attach the application.
    Attachments:
    email-smtp-mime.zip ‏321 KB

  • How To Get FileType and MIME Type from a File

    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.
    Can any one help me on this.
    Thanks in advance,
    Ram.
    Edited by: javausers07 on Apr 15, 2009 4:25 PM

    javausers07 wrote:
    Hi,
    I am using following ways to get FileType and MIME Type.
    I am able to get file type, but I am getting MIME Type as */*
    Can any one please let me know how to get MIME Type, but it should not be time consuming process.
    For File Type I am using following Code:
    private String getFileData(InputStream inStream) {
    fileName = C:\temp\temp.tiff
    String filePath = Util.createTempFile(fileName);
    RandomAccessFile raf = new RandomAccessFile(filePath, "rw");
    while (inStream.available() > 0) {
         byte[] buf = new byte[inStream.available()];
         inStream.read(buf);
         raf.write(buf);
    inStream.close();
    raf.close();
    File file = new File(filePath);Why do you do all above?
    JFileChooser chooser = new JFileChooser();
    String fileType = chooser.getTypeDescription(file);
    file.delete();
    //MIME Type I am getting from
    DataHandler data = new DataHandler(new DocumentSource(inStream));
    data.getContentType();
    data.getContentType() is not working well in all cases.That's because there's no way to get MIME type of all files on all filesystems.
    Kaj

  • I tried to update my ipod 4th gen. but when I came to see how much charge the screen was red and it wasnt charged and i cant use my ipod. the screen turned blue also one time, and now the apple logo comes up and its bright then dim and it stays there help

    I tried to update my iPod 4th generation while it was charging and when I came back to check on it the screen was red and it wouldnt go off, and my ipod wasnt charging like it was supposed to. I found out how to get the color of the screen off but my ipod always has the low battery thing and when I charge it sometimes the screen turns blue or the apple logo comes up bright and then it gets dim and stays there. My ipod wont turn on, and I really want it to work again. Help me please! Also, I noticed my ipod battery hasnt been lasting long as it should efore this happened.

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Ipod touch screen is dimmed and won't brighten

    i turned my ipod touch on one day and it was fine then the next thing i knew was the screen dimmed like it does before it goes into it's lock mode, but when i push the menu or power button the screen stays dimmed and i have tried several things to brighten the screen but nothing works. can anyone help me with this problem because i can't use my ipod touch anymore now?

    - Double tap the screen with three fingers and go to Settings>General>Accessibility and turn off Zoom and Voice over too if you want.
    - Alternately, you can connect to your syncing computer and go to the Summary pane.  Click on Configure Universal Acess and turn off Zoom and Voice Over (if you wish).

Maybe you are looking for

  • How can I transfer mp3's to my iPad using an SD card?

    Here's the deal: I am a reporter and I use a portable audio recorder to record material. I would like to import the recordings on my iPad via SD card, edit them (I only need to splice/join/trim), and e-mail them out. This is a very basic function for

  • Saving to .pdf I experience color loss

    I am experiencing color loss when I save my .ai file to .pdf. How can I fix this problem? Is there a way to export a 170mb .ai file as jpeg?

  • Running a command in Exchange Management Shell from Winexe

    The following works nicely when run from a dos prompt locally...  C:\Users\s-idauto>PowerShell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; New-MailboxExportRequest -Mailbox "m

  • How I Can download new printer drivers?

    Hello, I am trying to configure a new printer (HP CM6040), which is in the list of possible printers supported by OSX, but those drivers are not yet on my computer. I tried to do a Software Update, but it says that there are no new updates. Anybody k

  • Jtable Header's border disappear  after placing an icon on it

    I tried this in java 1.4 it works fine but the border between the headers of my JTable diappear Anyone knows why? ImageIcon icon = new ImageIcon(pathoficon); DefaultTableCellRenderer headerRenderer =new DefaultTableCellRenderer(); headerRenderer.setI