Attachment test

attachment test
Jochem
Jochem van Dieten
http://jochem.vandieten.net/

We have routinely exchanged such files in the past without incident, as I mentioned in another thread of yours, Al.  No need to turn the forums into an FTP space.
For very large files, yousendit.com works very well.  For smaller files, e-mail and the FTP space provided by your ISP is usually more than enough.  There are others like rapidshare, uploadit, etc.

Similar Messages

  • Help with Test Server & Binding Recordset ASP-SQL

    Using CS 3.3/DW. Behavior is the same on two different
    machines. One is Vista Home Premium SP1 IIS 7 with 6 compatability,
    other is XP SP 3 IIS 5.1, both have IE 7 and full SQL 2005 with
    SP's.
    Haven't gotten very far away from static page yet, because I
    can't test. Have scoured forums and even talked to Adobe who
    recreated the problem then told me that they hadn't done sufficient
    testing to SQL 2005 prior to release, were supposed to call me
    back, did once, supposed to call back again and haven't (3 days).
    So I'm turning to the community for help, please.
    Set up test server in folder 'TServer' under
    C:\inetpub\wwwroot. Built a 'Hello World' ASP/VB Script page with
    no data attached, tests fine, puts in the appropriate folder and
    says "Hello World" in browser like a good little box should! Have
    built many DSN's, they tested during the building fine, I've tried
    various versions of ODBC and OLE DB, including but not limited to
    Native SQL Client, which is my preference and have been quite
    successful setting up the DSN's...they add to the ASP page/Site
    (it's greyed out unless you have an open ASP page) fine. Test at
    that point works fine. As soon as I bind a Recordset (whether I
    have dropped data on the page or not...same 'Hello World' page with
    Recordset info near the top of the code) and test, I error out.
    Any thoughts? I'm sure you'll need more info...I've tried to
    put as much as I can for starters. Thanks in advance.
    Peter

    When you say that you error out, what error are you getting?
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com
    "Peter AZ" <[email protected]> wrote in
    message news:g5qb7n$n30$[email protected]..
    > Using CS 3.3/DW. Behavior is the same on two different
    machines. One is Vista
    > Home Premium SP1 IIS 7 with 6 compatability, other is XP
    SP 3 IIS 5.1, both
    > have IE 7 and full SQL 2005 with SP's.
    >
    > Haven't gotten very far away from static page yet,
    because I can't test. Have
    > scoured forums and even talked to Adobe who recreated
    the problem then told me
    > that they hadn't done sufficient testing to SQL 2005
    prior to release, were
    > supposed to call me back, did once, supposed to call
    back again and haven't (3
    > days). So I'm turning to the community for help, please.
    >
    > Set up test server in folder 'TServer' under
    C:\inetpub\wwwroot. Built a
    > 'Hello World' ASP/VB Script page with no data attached,
    tests fine, puts in the
    > appropriate folder and says "Hello World" in browser
    like a good little box
    > should! Have built many DSN's, they tested during the
    building fine, I've tried
    > various versions of ODBC and OLE DB, including but not
    limited to Native SQL
    > Client, which is my preference and have been quite
    successful setting up the
    > DSN's...they add to the ASP page/Site (it's greyed out
    unless you have an open
    > ASP page) fine. Test at that point works fine. As soon
    as I bind a Recordset
    > (whether I have dropped data on the page or not...same
    'Hello World' page with
    > Recordset info near the top of the code) and test, I
    error out.
    >
    > Any thoughts? I'm sure you'll need more info...I've
    tried to put as much as I
    > can for starters. Thanks in advance.
    >
    > Peter
    >
    >

  • Sending UTL_SMTP mail with Multiple attachment

    Hi,
    My Environment ----> Oracle Database 11g r1 on Windows 2003 Server (64Bit).
    The below script i used for sending mail with single attachment now i am trying to send mail with multiple attachment please tell me how to achieve this
    DECLARE
    /*LOB operation related varriables */
    v_src_loc BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT.LOG');
    l_buffer RAW(54);
    l_amount BINARY_INTEGER := 54;
    l_pos INTEGER := 1;
    l_blob BLOB := EMPTY_BLOB;
    l_blob_len INTEGER;
    v_amount INTEGER;
    /*UTL_SMTP related varriavles. */
    v_connection_handle UTL_SMTP.CONNECTION;
    v_from_email_address VARCHAR2(30) := '[email protected]';
    v_to_email_address VARCHAR2(30) := '[email protected]';
    v_smtp_host VARCHAR2(30) := 'MAIL.EXPORT.COM'; --My mail server, replace it with yours.
    v_subject VARCHAR2(30) := 'MULTIPLE Attachment Test';
    l_message VARCHAR2(200) := 'TEST Mail for Multiple Attachment';
    /* This send_header procedure is written in the documentation */
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    pi_name || ': ' || pi_header || UTL_TCP.CRLF);
    END;
    BEGIN
    /*Preparing the LOB from file for attachment. */
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    l_blob_len := DBMS_LOB.getlength(l_blob);
    /*UTL_SMTP related coding. */
    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
    UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
    UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
    UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
    UTL_SMTP.OPEN_DATA(v_connection_handle);
    send_header('From', '"Sender"');
    send_header('To', '"Recipient"');
    send_header('Subject', v_subject);
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'MIME-Version: 1.0' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: text/plain;' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' charset=US-ASCII' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Close Email
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    RAISE;
    END;
    Thank you
    Shan

    Hi Saubhik
    Thanks for your reply, below script i used to send mail with multiple attachments, plsql code is executing without any error messages and i am also able to receive mail with the multiple attachment.
    i used your code which u posted in OTN then i changed little bit as per my need, output is ok.but the problem is if i want to add one more file then i have to add more varaiables in the code. i want to make the code which i can add more attachments without adding more varaiables i don't know the way to do this. can u please give me some hints.
    Thanks for your help
    Shan
    Script Used:
    DECLARE
    /*LOB operation related varriables01 */
    v_src_loc BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT.LOG');
    l_buffer RAW(54);
    l_amount BINARY_INTEGER := 54;
    l_pos INTEGER := 1;
    l_blob BLOB := EMPTY_BLOB;
    l_blob_len INTEGER;
    v_amount INTEGER;
    /*LOB operation related varriables02 */
    v_src_loc2 BFILE := BFILENAME('DATA_PUMP_DIR', 'EXPORT1.LOG');
    l_buffer2 RAW(54);
    l_amount2 BINARY_INTEGER := 54;
    l_pos2 INTEGER := 1;
    l_blob2 BLOB := EMPTY_BLOB;
    l_blob_len2 INTEGER;
    v_amount2 INTEGER;
    /*UTL_SMTP related varriavles. */
    v_connection_handle UTL_SMTP.CONNECTION;
    v_from_email_address VARCHAR2(30) := '[email protected]';
    v_to_email_address VARCHAR2(30) := '[email protected]';
    v_smtp_host VARCHAR2(30) := 'MAIL.EXPORT.COM'; --My mail server, replace it with yours.
    v_subject VARCHAR2(30) := 'MULTIPLE Attachment Test';
    l_message VARCHAR2(200) := 'TEST Mail for Multiple Attachment';
    /* This send_header procedure is written in the documentation */
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
    BEGIN
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    pi_name || ': ' || pi_header || UTL_TCP.CRLF);
    END;
    BEGIN
    /*Preparing the LOB from file for attachment01. */
    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
    l_blob_len := DBMS_LOB.getlength(l_blob);
    /*Preparing the LOB from file for attachment02. */
    DBMS_LOB.OPEN(v_src_loc2, DBMS_LOB.LOB_READONLY); --Read the file
    DBMS_LOB.CREATETEMPORARY(l_blob2, TRUE); --Create temporary LOB to store the file.
    v_amount2 := DBMS_LOB.GETLENGTH(v_src_loc2); --Amount to store.
    DBMS_LOB.LOADFROMFILE(l_blob2, v_src_loc2, v_amount2); -- Loading from file into temporary LOB
    l_blob_len2 := DBMS_LOB.getlength(l_blob2);
    /*UTL_SMTP related coding. */
    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
    UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
    UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
    UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
    UTL_SMTP.OPEN_DATA(v_connection_handle);
    send_header('From', '"Sender"');
    send_header('To', '"Recipient"');
    send_header('Subject', v_subject);
    --MIME header.
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'MIME-Version: 1.0' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Body
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: text/plain;' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' charset=US-ASCII' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment01
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos < l_blob_len LOOP
    DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer := NULL;
    l_pos := l_pos + l_amount;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Mail Attachment02
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Type: application/octet-stream' ||
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    ' filename="' || 'export1.log' || '"' || --My filename
    UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    /* Writing the BLOL in chunks */
    WHILE l_pos2 < l_blob_len2 LOOP
    DBMS_LOB.READ(l_blob2, l_amount2, l_pos2, l_buffer2);
    UTL_SMTP.write_raw_data(v_connection_handle,
    UTL_ENCODE.BASE64_ENCODE(l_buffer2));
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    l_buffer2 := NULL;
    l_pos2 := l_pos2 + l_amount2;
    END LOOP;
    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    -- Close Email
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
    UTL_SMTP.WRITE_DATA(v_connection_handle,
    UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    DBMS_LOB.FREETEMPORARY(l_blob2);
    DBMS_LOB.FILECLOSE(v_src_loc2);
    EXCEPTION
    WHEN OTHERS THEN
    UTL_SMTP.QUIT(v_connection_handle);
    DBMS_LOB.FREETEMPORARY(l_blob);
    DBMS_LOB.FILECLOSE(v_src_loc);
    DBMS_LOB.FREETEMPORARY(l_blob2);
    DBMS_LOB.FILECLOSE(v_src_loc2);
    RAISE;
    END;
    PL/SQL procedure successfully completed.
    Edited by: SHAN2009 on May 11, 2011 1:05 PM

  • UTL_MAIL.send_attach_varchar2 add CrLf in attachment

    I'm having problems with UTL_MAIL... I need to send a RTF document attached to an email. But UTL_MAIL seems to add CrLf first in the attachement!
    If I try to send a realy simple file, just contailing 'Test' then the attachment will be chr(13)||chr(10)||Test. !!
    What ever is wrong, is wrong in this code snip...
    UTL_MAIL.send_attach_varchar2
    sender => '[email protected]',
    recipients => '[email protected]',
    subject => 'Log',
    MESSAGE => 'The attached file is the logfile. Please do not reply or respond to this e-mail, as it has been automatically generated.',
    attachment => 'Test',
    att_inline => FALSE,
    att_mime_type => 'application/octet',
    att_filename => 'log.txt'
    I have tried differnet Mime types and file names.... But nothing seems to help...
    I'm using a Oracle Xe 10.2.0.1.0.
    Can anybody explain whats failing???

    I don't know if this is the cause but why would anyone be on 10.2.0.1 this many years after so many patches have been released?
    Also consider attaching your file as raw rather than text. Does that solve the problem?

  • PDF attachment getting cut off

    Hello Experts,
    I'm trying to send a PDF attachment using a PL/SQL procedure. In this procedure Im picking up the PDF file from server and sending it via email attachment. The procedure works fine and sends the PDF but it cuts off the data in the PDF. When I open the PDF file I can only see half of page the rest is just blank. I cant figure out why this is happening, can someone please check the procedure and let me know where im going wrong.
    CREATE OR REPLACE PROCEDURE send_email AS
    v_file_handle UTL_FILE.FILE_TYPE;
    v_email_server VARCHAR2(100) := 'xxxx'; -- replace with SMTP server
    v_conn UTL_SMTP.CONNECTION;
    v_port NUMBER := 25;
    v_reply UTL_SMTP.REPLY;
    v_msg VARCHAR2(32767);
    v_line VARCHAR2(2000);
    v_message VARCHAR2(2000) ;
    b_connected BOOLEAN := FALSE;
    v_sender VARCHAR2(50) := '[email protected]'; -- Sender email address
    CRLF VARCHAR2(2):= CHR(13) || CHR(10);
    RECPT VARCHAR2(255) := '[email protected]'; -- Receptiant email address
    p_stat NUMBER;
    SLP PLS_INTEGER := 300;
    pdirpath VARCHAR2(50) := 'TEST'; -- directory on the server
    pfilename VARCHAR2(50) := 'test01.pdf'; -- pdf file on the server
    BEGIN
    p_stat := 0;
    /***** Check if the file exists ****/
    BEGIN
    v_file_handle := UTL_FILE.FOPEN(pDirPath, pFileName, 'R');
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH THEN
    p_stat := 01;
    DBMS_OUTPUT.PUT_LINE(SQLERRM ||' '|| p_stat);
    WHEN OTHERS THEN
    p_stat := 02;
    DBMS_OUTPUT.PUT_LINE(SQLERRM ||' '|| p_stat);
    END;
    /***** Try to connect for three times, do sleep in between for 5 minutes *****/
    FOR i IN 1..3 LOOP
    BEGIN
    --open the connection with the smtp server and DO THE handshake
    v_conn:= UTL_SMTP.OPEN_CONNECTION(v_email_server, v_port);
    v_reply :=UTL_SMTP.HELO( v_conn, v_email_server);
    IF 250 = v_reply.code THEN
    b_connected := TRUE;
    EXIT;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_LOCK.SLEEP (SLP);
    END;
    END LOOP;
    IF b_connected = FALSE THEN
    p_stat := 03;
    DBMS_OUTPUT.PUT_LINE(SQLERRM ||' '|| p_stat);
    END IF;
    v_reply := UTL_SMTP.MAIL(v_conn, v_sender);
    IF 250 != v_reply.code THEN
    p_stat := 04;
    DBMS_OUTPUT.PUT_LINE(SQLERRM ||' '|| p_stat);
    END IF;
    v_reply := UTL_SMTP.RCPT(v_conn, RECPT);
    IF 250 != v_reply.code THEN
    p_stat := 05;
    DBMS_OUTPUT.PUT_LINE(SQLERRM ||' '|| p_stat);
    END IF;
    UTL_SMTP.OPEN_DATA ( v_conn);
    v_message := 'Sample Email This is an auto generated mail. Please DO NOT reply TO this mail.'||CHR(10);
    v_msg := 'Date: '|| TO_CHAR( SYSDATE, 'Mon DD yy hh24:mi:ss' )
    || CRLF || 'From: ' || v_sender
    || CRLF || 'Subject: ' || 'Sample file'
    || CRLF || 'To: ' || RECPT
    || CRLF || 'Mime-Version: 1.0'
    || CRLF || 'Content-Type: multipart/mixed; boundary="DMW.Boundary.605592468"' || CRLF ||''
    || CRLF || v_message
    || CRLF ||''
    || CRLF ||'--DMW.Boundary.605592468'
    || CRLF ||'Content-Type: text/plain; NAME="v_message.txt"; charset=US-ASCII'
    || CRLF ||'Content-Disposition: inline; filename="v_message.txt"'
    || CRLF ||'Content-Transfer-Encoding: 7bit' || CRLF || ''
    || CRLF || v_message || CRLF || CRLF || CRLF;
    UTL_SMTP.WRITE_DATA(v_conn,v_msg);
    /***** Prepare the attachment to be sent *****/
    v_Msg := CRLF || '--DMW.Boundary.605592468'
    || CRLF || 'Content-Type: application/octet-stream; NAME="' || pFileName || '"'
    || CRLF || 'Content-Disposition: attachment; filename="' || pFileName || '"'
    || CRLF || 'Content-Transfer-Encoding: 7bit' || CRLF || CRLF;
    UTL_SMTP.WRITE_DATA (v_conn, v_msg);
    LOOP
    BEGIN
    UTL_FILE.GET_LINE(v_file_handle, v_line);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
    v_msg := '*** truncated ***' || CRLF;
    v_msg := v_line || CRLF;
    UTL_SMTP.WRITE_DATA ( v_conn, v_msg );
    END LOOP;
    UTL_FILE.FCLOSE(v_file_handle);
    v_msg := CRLF;
    UTL_SMTP.WRITE_DATA ( v_conn, v_msg );
    v_msg := CRLF || '--DMW.Boundary.605592468--' || CRLF;
    UTL_SMTP.WRITE_DATA ( v_conn, v_msg );
    UTL_SMTP.CLOSE_DATA( v_conn );
    UTL_SMTP.QUIT( v_conn );
    EXCEPTION
    WHEN OTHERS THEN
    p_stat := 06;
    END;
    I'm not sure why my PDF is getting cut off towards the end, any help would be much appreciated.
    Thank you very much.

    Hi,
    I managed to make it work, I changed the attach_base64 as per your recommendations but made my own slight change :-
    PROCEDURE attach_base64_fromfile
    (conn IN OUT NOCOPY utl_smtp.connection,
                        filename IN VARCHAR2,
    floc IN VARCHAR2,
                   mime_type IN VARCHAR2 DEFAULT 'application/octet',
                        inline IN BOOLEAN DEFAULT TRUE,
                        last IN BOOLEAN DEFAULT FALSE) IS
    i PLS_INTEGER;
    len PLS_INTEGER;
    fh Utl_File.File_Type;
    buf raw(32767);
    BEGIN
    begin_attachment(conn, mime_type, inline, filename, 'base64');
    fh := Utl_File.Fopen (
    location => floc,
    filename => filename,
    open_mode => 'r');
    BEGIN
    Utl_File.Get_Raw (
    file => fh,
    buffer => buf);
    i := 1;
    len := utl_raw.LENGTH(buf);
    WHILE (i < len) LOOP
    IF (i + MAX_BASE64_LINE_WIDTH < len) THEN
    utl_smtp.write_raw_data(conn, utl_encode.base64_encode(buf));
    utl_smtp.write_data(conn, utl_tcp.CRLF);
    END IF;
    i := i + MAX_BASE64_LINE_WIDTH;
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN NULL;
    END;
    Utl_File.Fclose ( file => fh );
    end_attachment(conn, LAST);
    END;
    and created another procedure to call send_mail.attach_base64_fromfile :-
    CREATE OR REPLACE PROCEDURE send_email_attachment IS
    conn utl_smtp.connection;
    BEGIN
    conn := Send_Mail.begin_mail(
    sender => '[email protected]', -- sender email address
    recipients => '[email protected]', -- recipient email address
    subject => 'Attachment Test',
    mime_type => Send_Mail.MULTIPART_MIME_TYPE);
    send_mail_vv.attach_base64_fromfile(
    conn => conn,
    filename => 'test.pdf', -- file name
    floc => 'TEST', -- file location
    mime_type => 'application/octet',
    inline => TRUE);
    Send_Mail.end_attachment( conn => conn );
    Send_Mail.end_mail( conn => conn );
    END;
    Thanks for all your help.

  • How to Attach Layout Created Using DME engine to program

    Hi Friends,
    I have created my own layout using DMEE tcode but i don't know how to attach that layout with my account payable program so that this layout will show it's effect after execution ,
    please tell me if any one know about this,
    Thanks & Regards,
    Yogesh

    This works for me. I see the text file "test.cvs" as an attachment in my email program (Outlook Express) and is not inline. Maybe this is dependent on the email program. What email program do you use?
    DECLARE
    conn utl_smtp.connection;
    BEGIN
    conn := demo_mail.begin_mail(
    sender => 'Me <[email protected]>',
    recipients => 'Someone <[email protected]>',
    subject => 'Attachment Test',
    mime_type => demo_mail.MULTIPART_MIME_TYPE);
    demo_mail.begin_attachment(
    conn => conn,
    inline => FALSE,
    filename => 'test.csv');
    demo_mail.write_text(
    conn => conn,
    message => 'title 1,title 2,title 3'||UTL_TCP.CRLF);
    demo_mail.write_text(
    conn => conn,
    message => 'vale 1,value 2,value 3');
    demo_mail.end_attachment(conn, TRUE);
    demo_mail.end_mail( conn => conn );
    END;

  • How to attach vo to amin co runtime

    how to attach vo to amin co runtime

    This works for me. I see the text file "test.cvs" as an attachment in my email program (Outlook Express) and is not inline. Maybe this is dependent on the email program. What email program do you use?
    DECLARE
    conn utl_smtp.connection;
    BEGIN
    conn := demo_mail.begin_mail(
    sender => 'Me <[email protected]>',
    recipients => 'Someone <[email protected]>',
    subject => 'Attachment Test',
    mime_type => demo_mail.MULTIPART_MIME_TYPE);
    demo_mail.begin_attachment(
    conn => conn,
    inline => FALSE,
    filename => 'test.csv');
    demo_mail.write_text(
    conn => conn,
    message => 'title 1,title 2,title 3'||UTL_TCP.CRLF);
    demo_mail.write_text(
    conn => conn,
    message => 'vale 1,value 2,value 3');
    demo_mail.end_attachment(conn, TRUE);
    demo_mail.end_mail( conn => conn );
    END;

  • Cannot open Word document attachment in mail before sending.

    Cannot open Word document attachment in mail before sending.
    In Snow Leopard Mail 4, (Version 4.0 (1075/1075.2)) if I attach a word document to a message and, BEFORE sending the message, I double click the attached document to open it, to make sure it is the right one, I get the error "Mail was unable to save the attachment “Test.doc” to disk. Verify that your downloads folder exists and is writable."
    The attachment is mailed correctly and arrives at the destination, but the ability to verify an attached document before sending it is essential. This has worked fine in all previous editions of OS X.
    Any ideas?
    Thanks - Lawrence

    I have same problem. I've done the following testing to pinpoint where the problem lies and there are clues (see below):
    1. My machine had SnowLeopard installed "fresh" (i.e. disk reformat and installed cleanly)
    2. I have a comparison machine running Leopard (10.5.6) - essentially a mirror but with different OS
    3. Problem is triggered when creating new email, with a MS Word .doc attachment added. If you attempt to open the attached file in the mail (not yet sent) it produces the error message "unable to save file XXX.doc to disk. Verify that your downloads folder exists and is writeable"
    4.However, once the mail is sent, the recipient can open the attachment without problems.
    5. I have run Disk Utility and all permissions are correct. My downloads folder exists.
    6. The problem is not present in Leopard (mirror machine other than OS)
    7. I have uninstalled and reinstalled MS Office. Problem still present
    8. I have deleted and recreated the preference files for both MS Office and for Mail. Problem still present.
    And finally...
    9.The problem is confined to .doc files.It works fine for .pdf, .ods AND even for Microsoft .xls files.
    So it may be a MS Word problem triggered by Snow Leopard?
    Apple: if you can confirm this is a Microsoft problem it may be able to be reported to them as a compatibility issue?
    Hope this helps.

  • Problem sending mail, everithing is an attachment

    I'm using this FM /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface to send emails.
    The FM works as expected except for the body of the email, it comes in an attachment.
    the "problematic" part of the code seems to be this:
    document = cl_document_bcs=>create_document(
                                    i_type    = documents_line-type
                                    i_text    = documents_line-content_text
                                    i_subject = documents_line-subject ).
    documents_line-type is 'EXT'
    documents_line-content_text is 'Example text body'
    documents_line-subject in 'Test'
    This is generating an email with subject 'Test' and with an attachment Test.EXT with the text...
    And I wanted it to just came in the body of the email.
    Should I use a specific type?

    A review of the many BCS example programs might be helpful to you, perhaps BCS_test_13...  See programs named BCS* in SE38 or SE80.... just a suggestion...you might see what you need in those.

  • How to send csv file as an attachment

    Hi,
    I am able to create a csv file in this directory as "test.scv" using utl_file and some select statements.
    Now I need to send this csv file as an attachment in email.
    we have smtp installed on our server.
    Please help me on this .
    Thanks
    Kind Regards

    The first link takes in a filename (this would be the csv file you have already created) so nothing should be hard coded; it's just the parameters you pass in.
    Doing a little more research (from the asktom article I posted previously) links to this [http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html] which the real gold is at [http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/maildemo_sql.txt]:
    with examples how to use it at [http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/mailexample_sql.txt].
    To get the attachments working from a PL/sql application you will require one of the packages or a large amount of code.
    here's the coded example for attaching files from the packages listed in maildemo_sql.txt from Oracle's website
    REM Send an email with 2 attachments.
    DECLARE
      conn      utl_smtp.connection;
      req       utl_http.req; 
      resp      utl_http.resp;
      data      RAW(200);
    BEGIN
      conn := demo_mail.begin_mail(
        sender     => 'Me <[email protected]>',
        recipients => 'Someone <[email protected]>',
        subject    => 'Attachment Test',
        mime_type  => demo_mail.MULTIPART_MIME_TYPE);
      demo_mail.attach_text(
        conn      => conn,
        data      => '<h1>Hi! This is a test.</h1>',
        mime_type => 'text/html');
      demo_mail.begin_attachment(
        conn         => conn,
        mime_type    => 'image/gif',
        inline       => TRUE,
        filename     => 'image.gif',
        transfer_enc => 'base64');
      -- In writing Base-64 encoded text following the MIME format below,
      -- the MIME format requires that a long piece of data must be splitted
      -- into multiple lines and each line of encoded data cannot exceed
      -- 80 characters, including the new-line characters. Also, when
      -- splitting the original data into pieces, the length of each chunk
      -- of data before encoding must be a multiple of 3, except for the
      -- last chunk. The constant demo_mail.MAX_BASE64_LINE_WIDTH
      -- (76 / 4 * 3 = 57) is the maximum length (in bytes) of each chunk
      -- of data before encoding.
      req := utl_http.begin_request('http://www.some-company.com/image.gif');
      resp := utl_http.get_response(req);
      BEGIN
        LOOP
          utl_http.read_raw(resp, data, demo_mail.MAX_BASE64_LINE_WIDTH);
          demo_mail.write_raw(
            conn    => conn,
            message => utl_encode.base64_encode(data));
        END LOOP;
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          utl_http.end_response(resp);
      END;
      demo_mail.end_attachment( conn => conn );
      demo_mail.attach_text(
        conn      => conn,
        data      => '<h1>This is a HTML report.</h1>',
        mime_type => 'text/html',
        inline    => FALSE,
        filename  => 'report.htm',
        last      => TRUE);
      demo_mail.end_mail( conn => conn );
    END;
    /Edited by: tanging on Dec 18, 2009 10:58 AM

  • SVT Spectrum Peak Search test

    Hello,
    I'm trying to test out the functionality of the Spectrum Peak Search VI in the Sound and Vibration Toolset. Please see the attached testing VI which has a simulated spectrum.
    For some reason, it can detect the presence of peaks but will not list their frequencies/amplitudes in the peaks array. Any ideas on what is going on?
    Thanks for any thoughts, Hunter (LabView 6.1 user)
    Attachments:
    Test_Peak_Detect.vi ‏56 KB

    Hmmm.....thanks for highlighting these. Opening up the cluster to view these on the front panel and then rerunning the VI actually produced results...even leaving the values at there defaults.
    I had to change the window to Hanning to get accurate results, though. Interestingly, it worked even with window size set to 0.
    Anyway, thanks for the help.

  • BAPI_PO_CREATE1 multiple schedule lines cann't create ECC500

    Dear all:
       I want to use BAPI_PO_CREATE1 to create more than one purchase order schedule item for a purchase order item .However, the system either posts the first purchase order schedule line or the BAPI terminates the posting with an error message. I have found SAP NOTES (828582) try to solve the problem . But it was no use.
       My SAP system component information is SAP_APPL     500     0012     SAPKH50012 .
       I attach test program as follows:
       REPORT  ZPO_CREATE.
    DATA: HEADER LIKE BAPIMEPOHEADER,
          HEADERX LIKE BAPIMEPOHEADERX,
          EXPHEADER LIKE BAPIMEPOHEADER,
          TESTRUN  LIKE BAPIFLAG-BAPIFLAG,
          ITEM LIKE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
          ITEMX LIKE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
          POSCHEDULE LIKE BAPIMEPOSCHEDULE OCCURS 0 WITH HEADER LINE,
          POSCHEDULEX LIKE BAPIMEPOSCHEDULX OCCURS 0 WITH HEADER LINE,
          POTEXTHEADER LIKE BAPIMEPOTEXTHEADER OCCURS 0 WITH HEADER LINE,
          POTEXTITEM LIKE BAPIMEPOTEXT OCCURS 0 WITH HEADER LINE,
          RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    *<<<< HEADER
      HEADER-COMP_CODE = '1000'.
      HEADER-DOC_TYPE = 'NB'.
      HEADER-CREAT_DATE = SY-DATUM.
      HEADER-CREATED_BY = SY-UNAME.
      HEADER-VENDOR = '0000000063'.
      HEADER-LANGU = SY-LANGU.
      HEADER-PURCH_ORG = '1000'.
      HEADER-PUR_GROUP = '100'.
      HEADER-CURRENCY = 'RMB'.
      HEADER-DOC_DATE = SY-DATUM.
      HEADERX-COMP_CODE = 'X'.
      HEADERX-DOC_TYPE = 'X'.
      HEADERX-CREAT_DATE = 'X'.
      HEADERX-CREATED_BY = 'X'.
      HEADERX-VENDOR = 'X'.
      HEADERX-LANGU = 'X'.
      HEADERX-PURCH_ORG = 'X'.
      HEADERX-PUR_GROUP = 'X'.
      HEADERX-CURRENCY = 'X'.
      HEADERX-DOC_DATE = 'X'.
    <<<< ITEM
      CLEAR ITEM.
      ITEM-PO_ITEM = '00010'.
      ITEM-MATERIAL = 'K01060'.
      ITEM-PLANT = '1000'.
      ITEM-QUANTITY = 20.
      ITEM-PO_UNIT = 'LIN'.
      ITEM-NET_PRICE = 310.
      ITEM-TAX_CODE = 'J2'.
      ITEM-PO_PRICE = 1.
      ITEM-FINAL_INV = 'X'.
      ITEM-IR_IND = 'X'.
      APPEND ITEM.
      ITEMX-PO_ITEM = '00010'.
      ITEMX-MATERIAL = 'X'.
      ITEMX-PLANT = 'X'.
      ITEMX-QUANTITY = 'X'.
      ITEMX-PO_UNIT = 'X'.
      ITEMX-NET_PRICE = 'X'.
      ITEMX-TAX_CODE = 'X'.
      ITEMx-PO_PRICE = 'X'.
      ITEMX-FINAL_INV = 'X'.
      ITEMX-IR_IND = 'X'.
      APPEND ITEMX.
    **************schedule lines   doesn't effect or make error when post po
    POSCHEDULE-PO_ITEM = 10 .
    POSCHEDULE-SCHED_LINE = 1.
    POSCHEDULE-DELIVERY_DATE = SY-DATUM .
    POSCHEDULE-QUANTITY = 5 .
    APPEND POSCHEDULE.
    POSCHEDULE-PO_ITEM = 10 .
    POSCHEDULE-SCHED_LINE = 2 .
    POSCHEDULE-DELIVERY_DATE = SY-DATUM .
    POSCHEDULE-QUANTITY = 15 .
    APPEND POSCHEDULE.
    POSCHEDULEX-PO_ITEM = 10 .
    POSCHEDULEX-SCHED_LINE = 1.
    POSCHEDULEX-DELIVERY_DATE = 'X' .
    POSCHEDULEX-QUANTITY = 'X' .
    APPEND POSCHEDULEX.
    POSCHEDULEX-PO_ITEM = 10 .
    POSCHEDULEX-SCHED_LINE = 2.
    POSCHEDULEX-DELIVERY_DATE = 'X' .
    POSCHEDULEX-QUANTITY = 'X' .
    APPEND POSCHEDULEX.
    CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          POHEADER                     = HEADER
          POHEADERX                    = HEADERX
          NO_PRICE_FROM_PO             = 'X'
        IMPORTING
         EXPHEADER                    = EXPHEADER
        TABLES
          RETURN                      = RETURN
         POITEM                       = ITEM
         POITEMX                      = ITEMX
         POSCHEDULE                   = POSCHEDULE
         POSCHEDULEX                  = POSCHEDULEX 
      LOOP AT RETURN .
        WRITE : /  RETURN-TYPE,
                   RETURN-ID,
                   RETURN-NUMBER,
                   RETURN-MESSAGE.
        CLEAR RETURN.
      ENDLOOP.
      IF NOT EXPHEADER IS INITIAL.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'  .
      ENDIF.
      I am full of grateful for you can solve my problem . Thanks a lot!
      Best regards.
                                       Daniel fu  2006-08-27

    I guess u need to add
    POSCHEDULEX-PO_ITEMX = X.
    before appending the table Parameter POSCHEDULEX
    One for each append statement on table internal table POSCHEDULEX
    Regards
    Alok Pathak

  • How to use boolean transition as trigger 0to1= 1impulse, 1to0= 0 impulse

    Hello!
    I have a boolean button HVenable which will be used to enable/disable the high voltage output of a voltage source.
    The problem:
    I only need one True value to send the Open HV command
    and one False value to send the Close HV command; the boolean button sends a continuous train of True values when it is on and a continuous train of F values when off.
    How can I convert a transition from off to on / F to T into a single 1 impulse or T impulse 
    and the transition from on to off/ T to F into a single 0 impulse or T impulse.
    What instrument converts a transition from F to T into a 1 or T impulse
    and a transition from T to F into a 0 impulse (different from the first kind of transition)?
    In the attached test vi, such an instrument would be inserted between HVenable button and Select;
    when True it will send an open command to visa O 01 CR
    when False  it will send a close command O 00 CR.
    Solved!
    Go to Solution.
    Attachments:
    bultrig.vi ‏11 KB

    First, Do Not Use Continuous Run to make code run more than once! Place the repeating code inside a loop. Continuous Run is a troubleshooting tool to be used (sparingly) during development.
    The key to your issue is to use the Event structure. A Value Change event on the HVenable boolean will do exactly what you want.
    You do not need Type Cast and all the conversions. Set string constants to '\' Codes display mode and enter the data you want.
    Lynn
    Attachments:
    bultrig.2.vi ‏11 KB

  • Querying Exchange 2013 Mail server for email items using c# and Exchange Web Services

    I am trying to upgrade an existing application that reads Exchange 2003 using WebDAV. The mail server is to be upgraded to Exchange 2013, so I am checking how I can use EWS.
    I have a problem in that although I know the inbox has unread items with attachments, the query I am running against the
    FindItems object is returning empty (results.totalCount=0)
    Here is my code snippet:
    private static void GetAttachments(ExchangeService service)
    // Return a single item.
    ItemView view = new ItemView(100);
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.UseDefaultCredentials = true;
    service.AutodiscoverUrl("[email protected]", RedirectionUrlValidationCallback);
    ItemView view = new ItemView(1);
    string querystring = "HasAttachments:true Subject:'ATTACHMENT TEST' Kind:email";
    // Find the first email message in the Inbox that has attachments.
    // This results in a FindItem operation call to EWS.
    FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, querystring, view);
    //FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50));
    if (results.TotalCount > 0)
    // looping through all the emails
    for (Int16 iDx = 0; iDx < results.TotalCount-1; iDx++)
    EmailMessage email = results.Items[iDx] as EmailMessage;
    if (email.IsRead == false) {
    // Request all the attachments on the email message. This results in a GetItem operation call to EWS.
    email.Load(new PropertySet(EmailMessageSchema.Attachments));
    foreach (Attachment attachment in email.Attachments)
    if (attachment is FileAttachment)
    FileAttachment fileAttachment = attachment as FileAttachment;
    What I am supposed to be doing is reading all the unread emails in the target inbox (only one Exchange server) and taking the attachments on disk so I can then add them as attachments as new cases on SalesForce.
    Where am I going wrong?
    Also, this line:
    ItemView view = new ItemView(100);
    was:
    ItemView view = new ItemView(1);
    Surely that will only look for one email item, right?

    thanks, do you know why I would be getting an error message like 'The specified object was not found in the store'
    here is my code:
    ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
    ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
    service.Url = new Uri("https://sgexc.bocuk.local/EWS/Exchange.asmx");
    //creates an object that will represent the desired mailbox
    Mailbox mb = new Mailbox(@"[email protected]");
    //creates a folder object that will point to inbox folder
    FolderId fid = new FolderId(WellKnownFolderName.Inbox, mb);
    //this will bind the mailbox you're looking for using your service instance
    Folder inbox = Folder.Bind(service, fid);
    FindItemsResults<Item> findResults = service.FindItems(new FolderId(WellKnownFolderName.Inbox, new Mailbox("[email protected]")),new ItemView(10));
    it's happening on this line:
    Folder inbox = Folder.Bind(service, fid);
    and if I try to use AutoDiscoverURL then I just see my own inbox.

  • How to Handle Special Characters in PI7.1

    Hi Team,
    I need to handle some special characters like <,>,& etc.. from WS Adapter to CRM in PI 7.1.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
    By using the above blog i had implemented the Java Code as
    public void execute(InputStream in, OutputStream out){
    try{
    int read_data;
    while((read_data = in.read()) != -1){
    if (read_data == '&'){
    out.write("&amp;".getBytes());
    }else if (read_data == '>'){
    out.write("&gt;".getBytes());
    }else if (read_data == '<'){
    out.write("&lt;".getBytes());
    }else if (read_data == '/'){
    out.write("&frasl;".getBytes());
    }else if (read_data == '\''){
    out.write("&apos;".getBytes());
    else { out.write(read_data);
    out.flush();
    } catch (Exception e){}
    I had added this class file in Operational Mapping.
    It is working  if we have only one IF condition for & in while
    Any suggestion
    Thanks
    Sriram

    Hi Ramesh,
    Thanks for your inputs, I have tried your code but it is not working. The error message stays the same.
    Dear Stephane,
    To describe the error more, the requirement is the payload coming from source through WS Adapter consists of the special characters <, > , & which are basic sematics of XML syntax. I need PI to process this payload with special characters and successfully transfer it to target CRM system. I have created the Java class with code (ref: Blog 9420) as stated earlier and added this class to my existing Operation Mapping. I am expecting the java mapping to replace the special characters in payload like  < with "&gt;" . So as the case with the other characters >,&,'
    After activaton of my operation mapping, I triggered the test message with Soap UI client and I could able to get a successful mapping only When I put the logic for &ampersand symbol only. However when I am trying to add the logic for > or < or ' the mapping is failing . I am using UTF-8 encoding across the source and PI enviroments.
    Sample SOAP message :
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:abcabca.com">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:MT_ABCDEFG_Req>
         <activity>
              <id/>
              <type>ZEMA</type>
              <actionType>C</actionType>
              <firewall>10000003</firewall>
              <subject>small &gt; &lt; attachment test</subject>
              <location/>
              <startDate>2010-07-08T10:53:31.000Z</startDate>
              <endDate>2010-07-08T10:53:31.000Z</endDate>
              <mainClient>1000319</mainClient>
              <mainContact>1000003</mainContact>
              <isConfidential>false</isConfidential>
              <summary/>
              <fullText>test body  - small.txt</fullText>
              <owner>1000021</owner>
              <from>ABCDEDF</from>
              <sendTo>emailaddress</sendTo>
              <copyTo/>
              <keywords/>
              <referenceId/>
              <createdBy>1000021</createdBy>
              <additionalContacts/>
              <additionalClients/>
              <additionalParticipants/>
              <status>A0008</status>
              <attachments>
                   <fileUrl>20100708110053-XXXXXXXXX</fileUrl>
                   <fileName>small.txt</fileName>
              </attachments>
              <attachments>
                   <fileUrl>20100708110053-XXXXXXXXX</fileUrl>
                   <fileName>EMail 2010-07-08.pdf</fileName>
              </attachments>
         </activity>
          </urn:MT_ABCDEFG_Req>
       </soapenv:Body>
    </soapenv:Envelope>
    Output on the SOAP UI  client for the above request:
    <!--see the documentation-->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>ADAPTER.JAVA_EXCEPTION</code>
                   <text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: XIServer:NO_MAPPINGPROGRAM_FOUND:
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1160)
         at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(
    What do you think where I am doing the wrong?
    Sriram

Maybe you are looking for

  • Performanc​e and W/R-Queue problems

    I'm new to NICAN programming and I'm in trouble with some weird behaviour: To measure bus-load with "KVASER Navigator" i wrote a simple program that sends very quickly a great number of frames. The first thing i noticed is the poor performance, reach

  • Check for null before rendering on jsp

    I have the following code which should only display the address if it is not null. I have the following code. <tr:outputText value="#{myBean.addressLine}"                      rendered="#{!empty myBean.addressLine}"/>But the rendered attribute doesnt

  • Itunes prob with videos

    I dont know what the ** is going on, but when i plug in my ipod it updates the songs , but not the movies.. it worked liked yesterday.. it will update the songs then say "the update is complete." It wont even say "it is ok to disconnect" There are mo

  • 27" thunderbolt monitor is not powering back on with Laptop

    Since updating to the new version of Yosemite my 27" thunderbolt monitor is not powering back on when plugged into my laptop via the thunderbolt port. Suggestions on how to get it back up?

  • Need some example to study but could not find sh.rpd and sh folder

    Dear all, I am new for OBIEE and want to use sh example to study. But I am so puzzle that I searched each space of the computer and could not find sh.rpd and sh folder. For some reason, I can't re-install dataware house. Is there someone could attach