Another Attachment Problem

I used JWSDP 2.0 to generate my client stubs from a WSDL file. I have one web service method that is supposed to allow the client to send a file as a SOAP attachment. Info on defining the WSDL for web service methods that receive attachments from the client seems to be sparse. The one example I found said to set up the WSDL like this:
<operation name="sendFile">
   <soap:operation soapAction="" />
      <input>
         <mime:multipartRelated>
            <mime:part>
               <soap:body use="literal" namespace="com.blankety.SomeWSInterface"/>
            </mime:part>
            <mime:part>
               <mime:content part="fileHandler" type="application/octet-stream" />
            </mime:part>
         </mime:multipartRelated>
      </input>
      <output>
         <soap:body use="literal" namespace="com.blankety.SomeWSInterface"/>
      </output>
</operation>Actually, the original example didn't have the namespace attribute but wscompile would not create the stub without the namespace defined. So I added that.
Anyway, the client stub for the above method gets generated fine. But at runtime, the stub throws the following exception:
javax.xml.rpc.soap.SOAPFaultException: JAXRPCTIE01:
caught exception while handling request: no attachment with id "fileHandler" found in message
     at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:528)
     at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307)
     at com.blankety.SomeWSInterfacePortType_Stub.sendFile(SomeWSInterfacePortType_Stub.java:498)
...Some research showed that the client has to properly set the Content Id for the attachment. But I looks to me like the code IS properly setting the Content Id, according to the one source I found. Here is the addAttachment method where the id is created. The value of the part argument is "fileHandler", which is what the above Exception is complaining about:
private void addAttachment(javax.xml.soap.SOAPMessage message, Object value,
         java.lang.String mimeType, java.lang.String part) throws Exception{
      java.lang.String contentId = part + "="
            + com.sun.xml.rpc.util.JAXRPCUtils.getUUID() + "@jaxrpc.sun.com";
      javax.xml.soap.AttachmentPart _attPart = null;
      if (value == null || mimeType == null){
         return;
      if (value instanceof javax.activation.DataHandler){
         _attPart = message
               .createAttachmentPart((javax.activation.DataHandler) value);
      } else if (value instanceof javax.mail.internet.MimeMultipart){
         java.lang.String contentType =
            ((javax.mail.internet.MimeMultipart) value).getContentType();
         javax.activation.DataHandler dataHandler =
            new javax.activation.DataHandler(value, contentType);
         _attPart = message.createAttachmentPart(dataHandler);
      } else{
         _attPart = message.createAttachmentPart(value, mimeType);
      _attPart.setContentId("<" + contentId + ">");
      message.addAttachmentPart(_attPart);
   }The statement that calls this method is:
addAttachment(_state.getRequest().getMessage(),
    (Object)fileHandler,
    ((javax.activation.DataHandler)fileHandler).getContentType(),
    "fileHandler");I've run this in the debugger and can see that the attachment is created and that there is a Content Id. Debugger output:
mimeType     "text/plain" (id=74)     
part     "fileHandler" (id=81)     
contentId     "[email protected]" (id=82)     
_attPart     AttachmentPartImpl  (id=52)     
   dataHandler     DataHandler  (id=56)     
     currentCommandMap     null     
     dataContentHandler     null     
     dataSource FileDataSource  (id=84)     
          _file     File  (id=96)     
          typeMap     null     
     factoryDCH     null     
     objDataSource     null     
     object     null     
     objectMimeType     null     
     oldFactory     null     
     shortType     null     
     transferFlavors     DataFlavor[0]  (id=87)     
     headers     MimeHeaders  (id=60)     
     rawContent     null     Obviously com.sun.xml.rpc.client.StreamingSender is not finding the Content Id. But why? Is it looking in the wrong place? Or is my client stub setting it in the wrong place?
Edited by: jimgood on Mar 1, 2009 1:13 PM
Edited by: jimgood on Mar 1, 2009 1:14 PM
Edited by: jimgood on Mar 1, 2009 1:16 PM

http://jakarta.apache.org/commons/fileupload/

Similar Messages

  • YAPP (Yet Another Printing Problem)

    I've found another printing problem - this time with colour printing.
    To my
    surprise, Forte (3.0.E.0) can print in colour (at least on a HP 690C,
    using
    NT drivers for the 660C, the printer being connected to a Win95
    machine).
    I can print OK with from my NT develpoment machine in colour, but when
    running
    the same app from the Win95 client with the printer attached locally the
    coloured text disappears. Has anyone else come across this problem?
    Is this another of the 'Printing works fine as long as it happens
    non-locally?'
    features?
    Thanks
    Jamie Anstice
    Programmer/Analyst, University of Canterbury
    New Zealand

    I can print OK with from my NT develpoment machine in colour, but when
    running
    the same app from the Win95 client with the printer attached locally the
    coloured text disappears. Has anyone else come across this problem?Hi Jamie,
    I wonder if this is related to the printing feature I discovered
    where things I print from Forte have a strong tendency to come out in
    the same colours as my windows desktop, which is
    typically yellow-on-black.
    - Ed
    ================================================================================
    Eduard E Havelaar, Information Services Section, University of Canterbury
    email: [email protected]
    phone: +64-3-366 7001 extn 8910
    fax: +64-3-364 2999
    snailmail: Private Bag 4800, Christchurch, New Zealand

  • Mime-attachment problems on iOS 6.1.3

    Hello all,
    I have a problem with multiple iPads running iOS 6.1.3. that I can reproduce every time, and would like to verify whether anyone else can confirm that behavior.
    Environment:
    - Apple iPad 4th Generation, Wi-Fi, 32 GB
    - Apple iPad 4th Generation, Wi-Fi + 3G, 64 GB
    - both iPads run iOS 6.1.3
    - open Outlook 2013 on local PC, select any two e-mails and click forward (those two e-mails will be added as attachments to new message ... extension .eml).
    - add another attachment (e.g. pdf file) to that new message and send it to e-mail address of account that you configured in your iPad Mail app.
    - open received e-mail through your iPad Mail app. Click "Download full message". When download completes, open "mime-attachment". Mail app crashes / closes.
    What I've tried:
    - turn on/off iPad (soft/hard (restart))
    - removed e-mail account from iPad and added e-mail account again
    - turned off all running applications, started Mail app ...
    Multiple iPhones running iOS 6.1.3 successfully display "mime-attachment" from e-mails created in described way.
    Thanks, MS

    Additional info:
    I've installed iPhone configuration utility and collected console log of crash ...
    Aug 30 19:00:57 IT1 MobileMail[629] <Warning>: Autoselection cancelled for message 515
    Aug 30 19:00:59 IT1 kernel[0] <Debug>: launchd[651] Builtin profile: syncdefaultsd (sandbox)
    Aug 30 19:01:02 IT1 lockdownd[46] <Notice>: 01584000 _receive_message: walk away - non-SSL 1
    Aug 30 19:01:03 IT1 MobileMail[629] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: key cannot be nil'
    *** First throw call stack:
    (0x332183e7 0x3b0a2963 0x3317a5ef 0x162eb1 0x35112087 0x13feed 0x13ff37 0x8873cb3 0x35144c61 0x3510c3a1 0x352f9163 0x35030883 0x3502f2cd 0x3503a1e7 0x35039db3 0x350278e1 0x350271ef 0x36d1b5f7 0x36d1b227 0x331ed3e7 0x331ed38b 0x331ec20f 0x3315f23d 0x3315f0c9 0x36d1a33b 0x3507b2b9 0xfefdf 0x3b4cfb20)
    Aug 30 19:01:04 IT1 ReportCrash[652] <Notice>: Formulating crash report for process MobileMail[629]
    Aug 30 19:01:04 IT1 ReportCrash[652] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
    Aug 30 19:01:04 IT1 ReportCrash[652] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/MobileMail_2013-08-30-190103_IT1.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
    Thanks, MS

  • Help - PDF Attachment Problem

    Hi,
    Receently, some of our users experienced pdf attachment problem. The user sent a 4mb pdf attachment but after the mail was sent out it only showed 4k in sent item. When the recipient received the e-mail the attachment also showed 4kb and it can't be opend too. These users are using Outlook 2000 and our Exchange server is 2000 Enterprise.
    Thanks for the help,
    JY

    Hi Suresh,
    I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
    I suggest you should implement BADI in your dev system and place a break point in the POST method...
    After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
    PS: Remember this BADI wont work for transaction ME29...
    Regards
    Gautam

  • Pdf attachment problems on osx lion

    Hello
    i was wondering if apple has fixed the pdf attachment problem seen on other iOS' such as 7.1.  I get the same error (blank pdf file, white screen), however, it doesn't happen all the time. 
    any explanations and comments would be greatly appreciated!

    OS 7 or IOS 7?
    If IOS 7, try the iPad community.
    iPad Community

  • New document: How to avoid known PDF email attachment problems

    Have you ever had problems with PDF attachments sent from Adobe Reader for iOS using Share > E-mail Document?
    You may find this document useful to avoid the problems.
    How to avoid known PDF email attachment problems
    Please let us know if you have encountered different types of problems with PDF attachments.  We can look for solutions or workarounds for you.

    Unfortunately, we (Adobe Reader mobile team) do not know if/when Apple will fix the attachment problems (software defects) in Apple Mail.
    In particular, the attachment problem with Microsoft Outlook (See Problem #2 in How to avoid known PDF email attachment problems) appears to be a long-standing defect that has been known for years.  However, Apple has not provided any fix for Apple Mail yet.
    Adobe Reader for iOS merely launches Apple Mail (the default mail app on iOS) to send a PDF document as an attachment.  Adobe Reader has no control over whether or not to embed a preview image of an attachment in the body of an email message, which is known to cause the problem with Microsoft Outlook (on the receiving side).  The same problem happens when you send a single-page PDF document as an attachment along with an email signature from Apple iBooks on iOS.
    For now, all iPad/iPhone users can do is to avoid the problems by using the workarounds that are described in How to avoid known PDF email attachment problems.
    When new and different problems with PDF attachments are reported by Adobe Reader for iOS users, we will update the document above.
    Sorry for the inconvenience.

  • BEx Broadcast email attachment problem with Lotus

    In our BW system, broadcasting with email have attachment problem when we look at SOST we can see email has mhtml attachment and looks fine but end-user does not get the attachment. Email server is Lotus and we think that problem is Lotus configuration related. Anyone having same problem come to a solution, help would be appreciated.
    Thanks in advance

    OK.

  • Excel Readpage Save as another file problem

    Hi,
    I have attached the VI needed If you have any problems please let me know. This VI reads a excel page the user points to and displays the results. I have added a single cell where you can change the position of a single cell coordinates so that you can point to a single cell of your choice and retrieve that data. So my problem is now I want to save that data from that single cell to ANOTHER excel file. However, this is not working correctly for some reason I do not know why I believe I have done everything correctly hopfully it is just my inexperiance. I will continue to work on this and update it as I get more time but at the current moment I have hit a brick wall. I have visited the EXCEL BOARD and the vi is from there but I had to add somethings to it in order for it to work correctly as before it wouldn't even run because it was missing some connections and nodes.
    Attachments:
    ExcelReadPage.vi ‏45 KB

    I took a look at the toolkits. The VIs are there, the problem is that
    the linkages are a bit screwed up so the top-level VIs think the subVIs
    are in different places. Also, the toolkits were written using an
    older version of Excel, in which the "Range" object had the property of
    "Value". Excel 2003 uses "Value2". So, if you have Excel 2003 even
    after you load up the VI the "Value" property nodes need to be changed
    to "Value2". This is not a fault of the toolkits - this is due to
    Microsoft changing the ActiveX interface.
    As to your issue: Your basic steps are to:
    Create a new workbook
    Write values to cells
    Save workbook
    The "Write Table to XL" that ships with LabVIEW does that. Launch the Example Finder (Help -> Find Examples) and search for "excel". Then, open the "Write Table to XL". The "Table" control is the data that you want to write. It can be a single cell or multiple cells. If you have a single value, just make a 2D array out of it. As it's written it will prompt you if you want to save the file. This is from the "Close" method. You can wire a True constant to the "SaveChanges" parameter and a path to the "Filename" parameter.

  • Another connection problem (with a lot of solution advices tried o

    hi everybody,
    since yesterday i'm a proud owner (more or less) of a zen x-fi. the only thing that dri'ves me crazy is that i can't get it working with windows.
    first of all the system config:
    Desktop PC (P4 on 95P Express chipset)
    Windows XP Pro SP3
    Media Player
    i searched the web and am trying to solve this problem: "there was a problem installing ..." for quite a long time now.
    here's what i did up until now:
    - deinstalling Media Player and installing v0 - couldn't deinstall v
    - installing newest version of the WMP (v - 5th Oct. 2008) from Microsoft to get the newest MTP support
    - deinstalling the "Creative Centrale" and reinstalling it (at the moments it's uninstalled)
    - installing Microsoft User Driver Framework v.0 (wouldn't allow me - of course, because it's implemented with WMP or rather it's drivers are older)
    - setting USB ENUM to "read" and "full control"
    - deinstalling and reinstalling the USB drivers (motherboard support as well as chipset vendor newest drivers)
    - checking every single USB port (front and back)
    - settings for USB HUBs to "full power supply" (no Power Management)
    - reinstalled SP3
    - got all new Updates from Windows (critical updates) including all up to date .Net Framework versions
    - tried the Media Transfer Protocol Porting Kit (quite sure that this doesn't do anything since it seems to be the sdk version and i know to little of programming to try something out)?
    - downloaded the fixup (found it in different posts to have been a workaround) and there was a little success: i got a working driver (no "there was a problem installing ...") until i realized that it doesn't show anything inside the folder (mtp/portable device) neither does it say "zen x-fi" in the device manager (it's only called "mtp device"). checked the .inf in the fixup package and realized that it couldn't work as long as i don't know the x-fi's Product ID, which i searched for on the internet (linux forums etc.) but the x-fi seems to be too new
    now: i of course tried it on another PC to be sure (Laptop with Windows XP Pro SP3 and WMP 0!) - and it works ...
    downside is: my library is fairly big and would fit on the Laptop's harddri've. i found a little workaround and imported the folder into the laptop's winamp library (via Network) and got some songs onto the Zen but it takes a lot of time getting them through the network connection (WLAN).
    as i see it there's only two chances: either the USB is not suitable (which i can't believe, since everything else that i attach is working fine and without any issues) or the problem has something to do with the Media Player's MTP.
    so does anyone have another idea or would i have to wait for either Windows or Creative to come up with a solution(maybe another hotfix)?
    thanks in advance
    regards
    al

    Ive been having hell with this aswell, although i think my computer is to blame. It "should" work if i could install wmp, but i cannot because my computer needs me to install some update rollup 2 which doesnt install and i cant install sp3 either... i've been contacting microsoft but they cant sort it.. maybe my pc is just reaching its old age and cannot cope with so many new things going on.
    but from what you have said i cant see why it shouldnt work with your current system.

  • E-mail attachment problem of ios 4.3

    I have the exchange 2010 mail account and recived by iPhone, everything okay before I upgrade the IOS to 4.3...
    Now I upgrade the IOS to 4.3, my iPhone can't open the attachment by 3G, it can download, you can see it will finish download job but can't open, or need to waiting 10-15min. (only open the file, not download time...)
    I try to using wifi open the attactment(new mail), everything okay...
    Anyone know what happen and how to fix it?
    Thank you

    Ok, I think I have tracked down the reason this is happening and I have also found a solution to the problem.
    Cause:
    If you copy your itunes music library from one machine to another using the finder (copying the directory ~/Music/iTunes) you will have 2 machines sharing the same library ID. This appears to cause the ipad and iphone running ios 4.3 to be unable to distinguish the 2 libraries and it ends up showing just one of them.
    Solution:
    Use this KB (http://support.apple.com/kb/HT1451) to force itunes to rebuild your itunes library. This have resolved the problem for me and I can now see all 3 copies of my itunes library at the same time.
    OBS!
    Be aware that if you follow this solution you and you are syncing a IOS device against the library you are rebuilding the IOS device will do a full re sync since it believes the library to be a new one.
    -Ivar

  • Mail attachment problem with IP TUNNELING

    Hi
    We are an Isp and we have two links separatly from two different service provider, one is for Send traffic and another one for recive traffic, we use simple Gre tunnle and configure it in our router ,the tunnel is active and everything seems works fine ,but when users want to use mail attachment like yahoo mail attachment they have problem : yahoo ask them to attach files they can browse and choose files after that when they want to finish ,the yahoo attachment page process opened and never finish it s job !!!!!!!
    please help.
    Thanks.
    Reards Bahman mozaffari

    Hi,
    this sounds like you are having MTU problems due to the GRE overhead. You can try to fix this with the command
    ip tcp adjust-mss ! f.e. 1400
    on the tunnel interfaces. The riouter will intercept TCP MSS negotiation and allow only TCP segments small enough to fit through the tunnel.
    Hope this helps! Please rate all posts.
    Regards, Martin

  • 2 attachment problems

    I'm having two problems with attachments in Mail that I can't find described/solved in any discussion.
    (1) When people send me Word files (.doc extension) they are displayed inline (encoded) rather than as icons, e.g.:
    --Apple-Mail-11--306075396
    Content-Transfer-Encoding: base64
    Content-Type: application/octet-stream;
    x-mac-type=5738424E;
    x-unix-mode=0644;
    x-mac-creator=4D535744;
    name="HoeferHuggett.28-April.doc"
    Content-Disposition: attachment;
    filename=HoeferHuggett.28-April.doc
    0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAEAAAAwgEAAAAAAAAA
    EAAAxAEAAAEAAAD+////AAAAAL4BAAC/AQAAwAEAAMEBAAD/////////////////////////////
    This example was from a Mac user. Despite the word "attachment" that appears at the top, Mail does not indicate that this message has an attachment, in the mailbox display attachment column.
    When my wife sent me 3 different file types in one message (from a PC), only the WordPerfect document appeared correctly as an attachment, the Word (.doc) disappeared, and two copies of the rtf/ansi appeared in-line (without attachment preamble, i.e. not like the example above.
    Is Mail just horrible at recognizing attachments? Can i do anything to fix this??
    (2) When I send messages to others with .txt attached files, they never arrive. Mail seems to send them, and they appear in my "Sent" folder, but never in fact get to their recipient (nor does any error message or returned-mail arrive back to me). I have two different IMAP accounts with separate smtp servers, and the probelm occurs with both. But identical messages without attachment go through fine, instantly.
    Can anybody Help?!
    HCH

    I have a similar problem to the second one you describe. If I send an email to clients with an attachment they often do not receive the attachment. Its still there in my Sent Messages list. Sometimes one CC receiver will get the attachment and another will not. I've found this generally happens with file types like JPEG or PDF (which are viewed in place in Mail). If I zip a file and send it then there is no problem. I've been using this workaround for almost a year I would guess.
    I'm still experimenting with solutions. Now I think I'll try defaulting to plain text (Mail Prefs>Composing>Message Format) and see if the problem comes up again.
    --Mike
    PowerBook G4 17" 1.67Mhz   Mac OS X (10.4.5)   Version 2.0.7 (746.2/746.3)

  • Apple Mail long russian filename attachment problem

    Hi,
    The problem is that Mail.app set incorrect filename for attachment. I have gmail account and set up Mail.app as IMAP client. Most attachments are correct, but sometimes they come with bad names.For example:
    In  gmail account (web) everything is ok:
    The problem is that Mail.app set another filename, set up KOI-8 and instead of having one name=".....", we have name*0, name*1, name*2
    In gmail:
    Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document;
              name="=?UTF-8?B?0KTRg9C90LrRhtC40L7QvdCw0LvRjNC90YvQtSDRgtGA0LXQsdC+0LLQsN C90LjRjyDQuiDQpNCe?=
              =?UTF-8?B?0J8gLSDQstGL0LHQvtGAINC/0YDQvtC00YPQutGC0LAg0Lgg0L/QvtC70Y8g0LrQ vtGC0L7RgNGL0LUg?=
              =?UTF-8?B?0L7RgdGC0LDRjtGC0YHRj192NC0xLmRvY3g=?="
    Content-Disposition: attachment;
              filename="=?UTF-8?B?0KTRg9C90LrRhtC40L7QvdCw0LvRjNC90YvQtSDRgtGA0LXQsdC+0L LQsNC90LjRjyDQuiDQpNCe?=
              =?UTF-8?B?0J8gLSDQstGL0LHQvtGAINC/0YDQvtC00YPQutGC0LAg0Lgg0L/QvtC70Y8g0LrQ vtGC0L7RgNGL0LUg?=
              =?UTF-8?B?0L7RgdGC0LDRjtGC0YHRj192NC0xLmRvY3g=?="
    Content-Transfer-Encoding: base64
    X-Attachment-Id: f_hg876ra80
    In Mail.App
    Content-Disposition: ATTACHMENT;
              filename*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/ SI";
              filename*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
              filename*2="xLmRvY3g=?="
    Content-Type: APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.WORDPROCESSINGML.DOCUMENT;
              name*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/SI";
              name*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
              name*2="xLmRvY3g=?="
    Content-Transfer-Encoding: BASE64

    BUG!!!
    Here is. Mail.app converts filename into KOI8-R, but it doesn't change encoding for section (in this message - -047d7bb03fd6ab743004dbbf6ccd)
    MIME-Version: 1.0
    Received: by 10.49.61.129 with HTTP; Thu, 2 May 2013 10:18:35 -0700 (PDT)
    Date: Thu, 2 May 2013 21:18:35 +0400
    Delivered-To: [email protected]
    Message-ID: <[email protected]m>
    Subject: TEST
    From: "Paul M. Tarasov" <[email protected]>
    To: "Paul M. Tarasov" <[email protected]>
    Content-Type: multipart/mixed; boundary=047d7bb03fd6ab743304dbbf6ccf
    --047d7bb03fd6ab743304dbbf6ccf
    Content-Type: multipart/ALTERNATIVE;
              boundary=047d7bb03fd6ab743004dbbf6ccd
    --047d7bb03fd6ab743004dbbf6ccd
    Content-Transfer-Encoding: BASE64
    Content-Type: TEXT/PLAIN;
              charset=UTF-8
    LS0gDQrQn9Cw0LLQtdC7DQo=
    --047d7bb03fd6ab743004dbbf6ccd
    Content-Transfer-Encoding: QUOTED-PRINTABLE
    Content-Type: TEXT/HTML;
              charset=UTF-8
    <div dir=3D"ltr"><br clear=3D"all"><div><br></div>-- <br><font face=3D"verd=
    ana, sans-serif">=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB</font>
    </div>
    --047d7bb03fd6ab743004dbbf6ccd--
    --047d7bb03fd6ab743304dbbf6ccf
    Content-Disposition: ATTACHMENT;
              filename*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/SI";
              filename*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
              filename*2="xLmRvY3g=?="
    Content-Type: APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.WORDPROCESSINGML.DOCUMENT;
              name*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/SI";
              name*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
              name*2="xLmRvY3g=?="
    Content-Transfer-Encoding: BASE64
    It must be KOI8-R
    MIME-Version: 1.0
    Received: by 10.49.61.129 with HTTP; Thu, 2 May 2013 10:18:35 -0700 (PDT)
    Date: Thu, 2 May 2013 21:18:35 +0400
    Delivered-To: [email protected]
    Message-ID: <[email protected]m>
    Subject: TEST
    From: "Paul M. Tarasov" <[email protected]>
    To: "Paul M. Tarasov" <[email protected]>
    Content-Type: multipart/mixed; boundary=047d7bb03fd6ab743304dbbf6ccf
    --047d7bb03fd6ab743304dbbf6ccf
    Content-Type: multipart/ALTERNATIVE;
      boundary=047d7bb03fd6ab743004dbbf6ccd
    --047d7bb03fd6ab743004dbbf6ccd
    Content-Transfer-Encoding: BASE64
    Content-Type: TEXT/PLAIN;
      charset=KOI8-R
    LS0gDQrQn9Cw0LLQtdC7DQo=
    --047d7bb03fd6ab743004dbbf6ccd
    Content-Transfer-Encoding: QUOTED-PRINTABLE
    Content-Type: TEXT/HTML;
      charset=UTF-8
    <div dir=3D"ltr"><br clear=3D"all"><div><br></div>-- <br><font face=3D"verd=
    ana, sans-serif">=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB</font>
    </div>
    --047d7bb03fd6ab743004dbbf6ccd--
    --047d7bb03fd6ab743304dbbf6ccf
    Content-Disposition: ATTACHMENT;
      filename*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/SI";
      filename*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
      filename*2="xLmRvY3g=?="
    Content-Type: APPLICATION/VND.OPENXMLFORMATS-OFFICEDOCUMENT.WORDPROCESSINGML.DOCUMENT;
      name*0="=?KOI8-R?B?5tXOy8PJz87BzNjO2cUg1NLFws/Xwc7J0SDLIObv8CAtINfZws/SI";
      name*1="NA=?= =?KOI8-R?B?0s/E1cvUwSDJINDPzNEgy8/Uz9LZxSDP09TBwNTT0V92NC0";
      name*2="xLmRvY3g=?="
    Content-Transfer-Encoding: BASE64

  • Iphone 4s - email attachment problem

    Does anyone have any suggestions for my problem.  It is sporadic.  I am trying to forward an email that I know has an attachment and the receiver gets the email but there's no attachment.
    My IT department can't seem to figure it out either.  We have rebooted and reloaded and still the same problem.

    From the receiver side - how are they viewing the email? iphone/ipad/desktop or another smart phone.
    It could be a problem on the receiving end rather than on your end.

  • Email attachment problem - unicode?

    Hi All,
    I've copied some of the examples from SDN on how to send an attachment via email from ABAP.
    The problem is that the text file attachments are incorrect. Each character is separated by another character. If I create a text attachment that reads "Hello" in the ABAP, the resulting text attachment is "H E L L O ".
    The SAP system is unicode. I have tried both SO_NEW_DOCUMENT_ATT_SEND_API1 and SO_DOCUMENT_ATT_SEND_API1. Both have the same effect.
    Does anyone have any idea how to ensure the email attachments retain the same format?
    Cheers
    Richard

    Hi Richard,
    Please refer to the below mentioned code and compare the Function modules used in your program and the below one.
    Program:  ZRAT                 Creation Date: 12.04.2007 *
    Program Title :  Retirement Age Trigger                  *
    Program Author:  Puneet Jhari                            *
    Program Type  :   Executable                             *
    Object ID     :                                          *
    Technical Specification Version:                         *
    Technical Specification Author:                          *
    Code Quality Reviewer     :                              *
    Transport No.          :  SRDK906499                     *
    Program Description:                                     *
    Inputs                                                   *
       Tables:                                               *
       Parameters                                            *
       External files:                                       *
    Outputs                                                  *
       Reports:                                              *
       Tables:                                               *
       Databases:                                            *
       Screens:                                              *
       Parameters                                            *
       External files:                                       *
       Other objects:                                        *
    Return codes set by ABAP:                                *
    Modification Informaion                                  *
    Program Version:                                         *
    Date         : DD-MMM-YYYY                               *
    Author       :                                           *
    Description  :                                           *
    Transport No.:                                           *
    REPORT  zrat NO STANDARD PAGE HEADING.
    *DATA DECLARATION
    DATA : BEGIN OF wa_ccode,
            bukrs TYPE t001-bukrs,
           END OF wa_ccode.
    DATA : itab_ccode LIKE TABLE OF wa_ccode.
    DATA : BEGIN OF wa_emp,
            pernr TYPE pa0001-pernr,
            sachp TYPE pa0001-sachp,
            sname TYPE pa0001-sname,
           END OF wa_emp.
    DATA : itab_emp LIKE TABLE OF wa_emp.
    DATA : BEGIN OF wa_bdate,
            nachn LIKE pa0002-nachn,
            vorna LIKE pa0002-vorna,
            pernr TYPE pa0002-pernr,
            gbdat TYPE pa0002-gbdat,
           END OF wa_bdate.
    DATA : itab_bdate LIKE TABLE OF wa_bdate.
    DATA : new_date LIKE sy-datum.
    DATA : diff TYPE i.
    DATA : years LIKE p0347-scryy,
           months LIKE p0347-scrmm,
           days LIKE p0347-scrdd.
    DATA : sup_code LIKE pa0001-sachp,
           itab_usrid LIKE t526-usrid,
           sup_pernr LIKE pa0105-pernr.
    DATA : BEGIN OF wa_email,
           usrid_long LIKE pa0105-usrid_long,
           END OF wa_email.
    DATA : sup_email LIKE TABLE OF wa_email.
    DATA : gwa_document_data LIKE sodocchgi1,
           gc_name  TYPE so_obj_nam VALUE 'RETIREMENT',
           gc_senst TYPE so_obj_sns VALUE 'P',
           gc_size  TYPE so_doc_siz VALUE '510',
           gi_obj_cnt LIKE TABLE OF solisti1 WITH HEADER LINE,
           gi_recievers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
           gwa_obj_cnt LIKE LINE OF gi_obj_cnt.
    DATA : smtp_addr LIKE adr6-smtp_addr.
    DATA : wa_date LIKE sy-datum,
           entries LIKE sy-tabix,
           name(15),
           line1(18) TYPE c,
           line2(20) TYPE c,
           line3(20) TYPE c,
           line4(23) TYPE c,
           line5(10) TYPE c,
           line6(45) type c,
           date(2) TYPE c,
           month(2) TYPE c,
           year(4) TYPE c.
    *START OF SELECTION
    SELECT bukrs
    FROM t001
    INTO TABLE itab_ccode
    WHERE land1 EQ 'GB'.
    SORT itab_ccode.
    DELETE ADJACENT DUPLICATES FROM itab_ccode.
    SELECT pernr sachp sname
    FROM pa0001
    INTO TABLE itab_emp
    FOR ALL ENTRIES IN itab_ccode
    WHERE bukrs EQ itab_ccode-bukrs AND begda LE sy-datum AND
    endda GE sy-datum and persg eq '1'.
    SELECT nachn vorna pernr gbdat
    FROM pa0002
    INTO TABLE itab_bdate
    FOR ALL ENTRIES IN itab_emp
    WHERE pernr EQ itab_emp-pernr.
    *TO CHECK EMPLOYEES WHOSE AGE IS NEAR 75 YEARS.
    LOOP AT itab_bdate INTO wa_bdate.
      new_date = wa_bdate-gbdat.
    *TO CALCULATE THE AGE TILL DATE
      CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
        EXPORTING
          date1                         = sy-datum
          date2                         = new_date
         output_format                 = '05'
       IMPORTING
         years                         = years
         months                        = months
         days                          = days
      IF sy-subrc <> 0.
      ENDIF.
      IF years EQ 64 AND months EQ 4.
        IF days GE 23 AND days LE 31.
    *FETCH THE DATA IF THE AGE IS NEARING 75 YEARS
          SELECT SINGLE sachp FROM pa0001 INTO sup_code WHERE pernr EQ
          wa_bdate-pernr AND begda LE sy-datum AND endda GE sy-datum.
          SELECT SINGLE usrid FROM t526 INTO itab_usrid WHERE sachx EQ
          sup_code.
          SELECT SINGLE pernr FROM pa0105 INTO sup_pernr WHERE usrid EQ
          itab_usrid AND subty EQ '0001'.
          clear sup_email[].
          SELECT usrid_long FROM pa0105 INTO TABLE sup_email WHERE pernr EQ
          sup_pernr AND subty EQ '0010'.
    *EMAIL ADDRESS OF THE SUPERVISOR TO BE NOTIFIED
          CLEAR gi_obj_cnt.
          CLEAR gi_recievers.
          CLEAR gwa_document_data.
          Loop at sup_email into wa_email.
          write sy-uline+0(5).
          write sy-uline+10(5).
          write sy-uline+20(5).
          write sy-uline+30(5).
          write sy-uline+40(5).
          write sy-uline+50(5).
          write sy-uline+60(5).
          write sy-uline+70(5).
          smtp_addr = wa_email-usrid_long.
          gi_recievers-receiver = smtp_addr.
          gi_recievers-rec_type = 'U'.
          gi_recievers-com_type = 'INT'.
          APPEND gi_recievers.
          Endloop.
          smtp_addr = '[email protected]'.
          gi_recievers-receiver = smtp_addr.
          gi_recievers-rec_type = 'U'.
          gi_recievers-com_type = 'INT'.
          APPEND gi_recievers.
          gwa_document_data-obj_name    = gc_name.
          gwa_document_data-obj_descr   = 'RETIRE'.
          gwa_document_data-sensitivty  = gc_senst.
          gwa_document_data-obj_langu = sy-langu.
    *CONTENT OF THE EMAIL TO BE SENT
          line1 = 'Please note that  '.
          line2 = wa_bdate-vorna.
          line3 = wa_bdate-nachn.
          line4 = ' will be 65 years on  '.
          line50(4) = wa_bdate-gbdat4(4).
          date = line5+2(2).
          month = line5+0(2).
          year = wa_bdate-gbdat+0(4) + 65.
          CONCATENATE date month year INTO line5 SEPARATED BY '.'.
          line6 = '.Please complete the Retirement Procedure.'.
          CONCATENATE line1 line2 line3 line4 line5 line6 INTO gwa_obj_cnt
          SEPARATED BY space.
          APPEND gwa_obj_cnt TO gi_obj_cnt.
          CLEAR gwa_obj_cnt.
          DESCRIBE TABLE gi_obj_cnt LINES entries.
          READ TABLE gi_obj_cnt INDEX entries.
    gwa_document_data-doc_size = ( entries - 1 ) * 255 + STRLEN( gi_obj_cnt
    *FUNCTION MODULE TO SEND THE EMAIL TO THE CONCERNED PERSONS
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = gwa_document_data
        document_type                    = 'RAW'
             commit_work                      = 'X'
            TABLES
             object_content                   = gi_obj_cnt
              receivers                        = gi_recievers
      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
    *MESSAGE TO BE DISPLAYED AFTER THE EXECUTION
         endif.
          CASE sy-subrc.
            WHEN 0.
              LOOP AT gi_recievers.
                IF gi_recievers-receiver = space.
                  name = gi_recievers-rec_id.
                ELSE.
                  name = gi_recievers-receiver.
                ENDIF.
                IF gi_recievers-retrn_code = 0.
                  WRITE: / name, ': succesfully sent'.
                ELSE.
                  WRITE: / name, ': error occured'.
                ENDIF.
              ENDLOOP.
            WHEN 1.
              WRITE: / 'Too many receivers specified !'.
            WHEN 2.
              WRITE: / 'No receiver got the document !'.
            WHEN 4.
              WRITE: / 'Missing send authority !'.
            WHEN OTHERS.
              WRITE: / 'Unexpected error occurred !'.
          ENDCASE.
        ENDIF.
      ENDIF.
    ENDLOOP.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

Maybe you are looking for

  • Using Sync as a one way backup?

    I have a user with a client mac (MacBook Pro). The MBP actually remains on our network at all times and I want to backup both her Documents and Desktop folders every time she logs out, no need to backup anything else. She has a home folder on our Act

  • Page Size Problem in Pdf

    Hi All, I want to print cheques form oracle Reports 10g, I developed report in 6i & it works fine, Now I am going to convert it in 10g, in report developer it works fine but when it generates through reports server it generates on full pdf page. Kind

  • Dynamic tooltip for a link

    Hi, I have a requirement to display a dynamic tooltip when the cursor is placed on a cell of a table. The cell contains a link. Is it possible in OA framework? How can we achieve this? Divya.

  • Can I control read authorizations of roadmap per each nodes?

    Hello, everyone. My customer has requested me to restrict read authorization of roadmap. We use one roadmap and one project. He want to restrict read authorizations of several nodes and let some managers can read documents of the nodes. But he don't

  • 5.1 Sound for Satellite L550

    Hello! I bought a new 5.1 sound system but unfortunately my onboard sound card doesn't support it. Is it possible to install another onboard sound card and - if yes - which ones can i use? Thanks in advance, Jnny