SOAP To File (Attachment swapping with Payload using Payload Swap Bean)

Hi,
I am working on the subject line. The scenario works well and good when I use the bean in Receiver File Communication Channel.
The same bean configuration if I use on the sender SOAP the swapping of payload and attachment is not happening.
Any Ideas.............
Thanks,
- Gujjeti.
Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM
Edited by: Praveen Gujjeti on Feb 27, 2009 1:53 PM

Hi Praveen,
Clearly written in SAP help document :
"SOAP sender Adapter does not support Moduls"
so using Payload swipe bean is all van.
Thanks
Sunil Singh

Similar Messages

  • How to set the value of process variables/payload using a managed bean?

    Hello,
    Someone can give me an example about how to set the values of a process payload in a managed bean?
    thank you!

    Try this:
    jsf page:
    <af:selectOneChoice label="Select Suburb"
    requiredMessageDetail="Select a suburb"
    valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
    validator="#{selectOneChoiceBean.validate}"
    unselectedLabel="None" autoSubmit="true"
    binding="#{selectOneChoiceBean.selectOneChoice}"
    value="#{selectOneChoiceBean.value}">
    <f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
    </af:selectOneChoice>
    backing bean:
    public class SelectChoiceBean {
    private List<SelectItem> selectionList;
    private String value = "B";
    private RichSelectOneChoice selectOneChoice;
    public SelectChoiceBean() {
    initSelectionList();
    public void setSelectionList(List<SelectItem> selectionList) {
    this.selectionList = selectionList;
    public List<SelectItem> getSelectionList() {
    return selectionList;
    public void onValueChanged(ValueChangeEvent valueChangeEvent) {
    System.out.println(valueChangeEvent.getNewValue());
    // Add event code here...
    public void validate(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    private void initSelectionList() {
    selectionList = new ArrayList<SelectItem>();
    selectionList.add(new SelectItem("A", "A label"));
    selectionList.add(new SelectItem("B", "B label"));
    selectionList.add(new SelectItem("C", "C label"));
    public void setValue(String value) {
    this.value = value;
    public String getValue() {
    return value;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    }

  • Unsorted Flat File into IDoc with multiple use of nodes

    Hi Experts!
    I am facing a little problem. I have a source flat file for a classification where some fields appear several times.
    My source flat file looks like this:
    item1; field1a
    item2; fieldA
    item3; fieldxa
    item1; field1b
    as you can see the item1 exists twice (further appearances are also possible).
    Now i have to map the flat file into an IDoc structure
    My target IDoc looks like this
    Header
    -- node1
    attribute1
    -- node2
    the "field1a" and "field1b" has to be mapped into the "attribute1" in "node1". "node1" has to be duplicated for each time an "item1" appears (.. and if item2, item3 etc. appears twice, three ... four times...).
    So how can i reach it that the node1 will be duplicated automatically when an item appears twice or more times? I know that it could be possible to work with "SplitByValue"... but for this i need all item1 in an straight order.... but i dont have them in a correct order.
    I am looking forward to your suggestions.
    Thank you in advance.
    Udo

    Complex sorting is not or not easy possible with the grafical mapping tool.
    Use a sequence mapping. The first mapping is a simple XSLT which does the sort. The second mapping works as usual.
    I have an example XSLT which I used for a different purpose:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="/">
        <ORDERLIST>
          <xsl:for-each select="ORDERLIST/ITEM">
            <xsl:sort select="ID"/>
            <xsl:copy-of select="."/>
          </xsl:for-each>
        </ORDERLIST>
      </xsl:template>
    </xsl:stylesheet>
    Regards
    Stefan

  • Cannot attach files to email. get message "An internal error occurred when attempting to attach... " when do retry and "switch" can attach the file. What is the problem? Files attach ok with IE.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

  • Problem while sending file attachment

    <strong>Hi,
    I am using java mail api to send mail from a standalone java application. The mail has one html file attachment. I am using the below java program.</strong>
    import java.io.File;
    import java.util.Properties;
    import javax.activation.DataHandler;
    import javax.activation.DataSource;
    import javax.activation.FileDataSource;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.Multipart;
    import javax.mail.Part;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    public class AttachExample {
    public static void main(String args[]) throws Exception {
    String host = "smtp.gmail.com";
    String from = "[email protected]";
    String to = "[email protected]";
    String fileAttachment = "javamail.html";
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth", "true");
    Authenticator authenticator = new Authenticator() {
    public PasswordAuthentication getPasswordAuthentication() {
    String username = "[email protected]";
    String password = "password";
    return new PasswordAuthentication(username, password);
    // Get session
    Session session = Session.getInstance(props, authenticator);
    // Define message
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(
    "[email protected]"));
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(from));
    message.setSubject("Hello JavaMail Attachment");
    // create the mail root multipart
    MimeMultipart mpRoot = new MimeMultipart("mixed");
    // Create a body part to house the multipart/alternative Part
    MimeBodyPart contentPartRoot = new MimeBodyPart();
    // Create the content multipart (for text and HTML)
    MimeMultipart mpContent = new MimeMultipart("alternative");
    // Add text
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText("Hello World");
    mpContent.addBodyPart(mbp1);
    // Add html
    MimeBodyPart mbp2 = new MimeBodyPart();
    mbp2.setContent("<P>Hello World</P>", "text/html");
    mpContent.addBodyPart(mbp2);
    contentPartRoot.setContent(mpContent);
    // Add the root body part to the root multipart
    mpRoot.addBodyPart(contentPartRoot);
    // Add an attachment
    MimeBodyPart mbp3 = new MimeBodyPart();
    DataSource source = new FileDataSource("javamail.html");
    mbp3.setDisposition(Part.ATTACHMENT);
    mbp3.setDataHandler(new DataHandler(source));
    mbp3.setFileName("javamail.html");
    mbp3.setHeader("Content-Type", "text/html");
    mpRoot.addBodyPart(mbp3);
    message.setContent(mpRoot);
    message.saveChanges();
    session.setDebug(true);
    // Send the message
    Transport.send(message);
    <strong>
    In my web mail I am not able to find the attachment in inbox/sent item. However I can see the mail is present there.</strong>
    Here is the mail....
    ------=_Part_0_5439109.
    <div class="ii gt">
    1276373943170
    Content-Type: multipart/alternative; boundary="----=_Part_1_14410104.1276373943174"
    ------=_Part_1_14410104.1276373943174
    Content-Type: text/plain; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    Hello World
    ------=_Part_1_14410104.1276373943174
    Content-Type: text/html; charset=us-ascii
    Content-Transfer-Encoding: 7bit
    <P>Hello World</P>
    ------=_Part_1_14410104.1276373943174--
    ------=_Part_0_5439109.1276373943170
    Content-Type: text/html
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: attachment; filename=javamail.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "<a href="http://www.w3/" target="_blank">http://www.w3</a>=<br />
    .org/TR/REC-html40/loose.dtd">
    <html><head>
    <meta http-equiv=3D"content-type" content=3D"text/html;
    charset=3DISO-8859-1=<br />
    <<.....more html code....>><br />
    </div>
    <hr><br />
    =A9 Vipan Singla 2001<br />
    </body></html><br />
    ------=_Part_0_5439109.
    <div class="ii gt">
    1276373943170--<br />
    <br />
    <br />
    <strong>I think I am missing something. Please suggest if you have any idea.<br />
    Thanks In Advance.</strong><br />
    <br />
    <br />
    </div>

    Your posting is full of html markup that this forum doesn't understand, which makes
    it really hard to see what you were trying to say...
    Also, I can't tell whether you're showing us the entire message that was sent,
    or whether you're just showing us part of it. For example, I don't see any From
    or To headers in the message. If they're really missing, something else is wrong.
    If they actually are present in the message, then the rest of what you showed
    looks fine.
    Possibly your web mail isn't able to handle a message that has both a
    multipart/alternative and an attachment? Try a simple plain text message
    with an attachment and see if that works better.

  • How to ZIP, PDF file attachment

    Hi,
    I have an ABAP report requirement to send an email to a user. This program will send an email with PDF attachement. However, the PDF attachment is quite big (9MB) and our email server couldn't handle it (5MB only). Is there any way to ZIP this PDF file attachment?
    I am using a SAP release ECC 6.0with OS WinNT. And the ABAP program should be able to run in Foreground/Background.
    Thanks for your help in advance...

    Hi,
    Try this code:
    data ca_attach_zip(22)     TYPE c VALUE 'Attch.',
    OPEN DATASET va_filename_zip  FOR INPUT  IN BINARY MODE.
       DO.
         READ DATASET va_filename_zip INTO objbin.
         IF sy-subrc NE 0. EXIT. ENDIF.
         APPEND objbin.
       ENDDO.
        APPEND objbin.
      DESCRIBE TABLE objbin LINES tab_lines.
       CLOSE  DATASET va_filename_zip.
        DELETE DATASET va_filename.
        DELETE DATASET va_filename_zip.
        DESCRIBE TABLE objbin LINES tab_lines.
        objhead = ca_attach_zip.
        APPEND objhead.
    ***Creation of the entry for the compressed attachment
       objpack-transf_bin = 'X'.
        objpack-head_start = 1.
      objpack-head_num = 1.
        objpack-body_start = 1.
        objpack-body_num = tab_lines.
       objpack-doc_type = ca_zip.
       objpack-obj_name  = ca_attach_zip.
      objpack-obj_descr = ca_attach_zip.
       objpack-doc_size = tab_lines * ca_255.
        APPEND objpack.
    *** Completing the recipient list
        reclist-receiver = va_mail_address.
        reclist-express  = 'X'.
        reclist-rec_type = 'U'.
        APPEND reclist.
    *** Sending the document
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
           document_data              = doc_chng
           put_in_outbox              = ca_x
            commit_work                = 'X'
          TABLES
           packing_list               = objpack
            object_header              = objhead
            contents_bin               = objbin
            contents_txt               = objtxt
            receivers                  = reclist
          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.
    You have to load your file in the contents_bin table of FM.
    You can load the file by OPEN DATASET and the READ DATASET command.
    In the object_header you can put some description.
    For your info:
    1. Zip the data and send as an email attachment
    2. How to Zip the data in an internal table
    3. Re: How to ZIP a PDF file email attachment
    May it helps you.
    Regards.
    Deepak Sharma.

  • Security for file attachment

    Hi,
    Is there is any API available to secure file attachment.
    Initially i used AVCryptDoStdSecurity() API, but it is securing entire document itself instead of attachment
    how to handle file atttachment security?
    Please throw ur ideas on it!!!!!!!
    Regards,
    Nethaji

    Hi Leo
    Thanks for ur response
    The actual problem what i am facing is,
    when i choose "file encrypt attachment only" option (it is a option in Adobe password window) through my application.the whole document is getting secured
    For eg: Consider a.pdf be the document, i am attaching 1.xls in the a.pdf document and i am opening the adobe password window through my application for a.pdf document and choosing the option "file encrypt attachment only" option
    EXPECTED RESULT:
    when opening a.pdf it should get opened and when opening the attacment in a.pdf ie.,1.pdf it should ask for password (this is behavior in Acrobat)
    OBSERVED RESULT:
    when i am opening the document a.pdf it is not getting opened instead it asks for password ie., the whole document is secured
    I have used AVCryptDoStdSecurity() API
    in order to display the acrobat password asking window after this what should i do in order to handle "file attachment encryption only"option (it is activated if compatibility Acrobat7.0 or later is choosed)
    There is a structure in my code which has "encryptattachementonly" field which sets to value "1" when the option "file attachment only" is choosed but after this i dont know how to handle this, in order to acheive the expected result
    if u want to have code details i ll give
    Please throw ur ideas
    Regards,
    Nethaji

  • Fetching Idoc file from server through FTP using TCP/Ip protocol

    Hi All,
    My file which is stored in the directory of the SAP server.
    In this file Sales order data is stored in the IDOC format.
    I have to develop a interface which which communicate with Server (where IDOC file is stored) with FTP using TCP/IP.
    Is there any sample code is there.
    Thanks in advance .
    Point guranted .

    Hi,
    Check this links out
    Using of FTP_CONNECT
    FTP_CONNECT
    FTP_CONNECT
    Regards,
    Samson Rodrigues.

  • SOAP Axis sender with CSV file attachment

    Hi Experts,
    I have a requirement where I receive a CSV file attachment from a Web Service post ( i.e a SOAP sender with attachment). I decided to use SOAP with Servlet(Axis) protocol, since standard SOAP sender does not allow modules to be used.
    I am able to test this interface through SOAPUI with attachment to the point where I can get the attachment payload as my main payload in IE, but it fails in mapping since CSV needs to be converted to XML. I have following queries for proceeding ahead with this scenario:
    1. How do I convert the CSV attachment to XML inorder for mapping to be used in IE. Is there a standard axis handler available for this ???? Also where should this handler be called in the sequence of Axis modules ???
    2. Can I use MessageTransformationBean for converting plain to XML ??? If yes where should this module be called in the sequence of Axis modules. I tried using this module between the CallSapAdapter and the first AdapterBean but it returns exception in SOAPUI saying " Messaging exception: No Main"
    3. Is there a blog available which illustrates about using additional modules/handlers in Axis. I have had a look at the FAQ note of Axis but it just gives the overview.
    Thanks.
    Siddhesh S.Tawate

    Solved :).
    1     AF_Adapters/axis/HandlerBean                     Local Enterprise Bean                              xireq
    2     AF_Adapters/axis/AFAdapterBean                     Local Enterprise Bean                              afreq
    3     localejbs/AF_Modules/MessageTransformBean    Local Enterprise Bean                     Plain2XML
    4     CallSapAdapter                                          Local Enterprise Bean                              sap
    5     AF_Adapters/axis/AFAdapterBean                    Local Enterprise Bean                             afresp
    6     AF_Adapters/axis/HandlerBean                    Local Enterprise Bean                             xires
    Above sequence worked. I guess I was missing some parameter in content conversion earlier.
    Thanks.

  • How to use UTL_SMTP to send email with existing file attachment

    Hello! I am trying to create a pl/sql procedure that lets me send an email and include an existing file to a email address. So far, I found information on how to send a file and create an attachment with information I put in the procedure. This is NOT what I'm trying to do. I'm trying to send an email and include an attachment for a file that already exists. I need the pre-existing file to be sent to the email recipient.
    This is how far I've gotten, but this only allows me to CREATE an attachment with the information I put in it from the procedure. I got it from the following site:
    http://www.orafaq.com/wiki/Send_mail_from_PL/SQL
    DECLARE
       v_From       VARCHAR2(80) := '[email protected]';
       v_Recipient  VARCHAR2(80) := '[email protected]';
       v_Subject    VARCHAR2(80) := 'Weekly Invoice Report';
       v_Mail_Host  VARCHAR2(30) := 'mail.mycompany.com';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Data(v_Mail_Conn,
        'Date: '   || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
        'From: '   || v_From || crlf ||
        'Subject: '|| v_Subject || crlf ||
        'To: '     || v_Recipient || crlf ||
        'MIME-Version: 1.0'|| crlf ||     -- Use MIME mail standard
        'Content-Type: multipart/mixed;'|| crlf ||
        ' boundary="-----SECBOUND"'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        'Content-Transfer_Encoding: 7bit'|| crlf ||
        crlf ||
        'This is a test'|| crlf ||     -- Message body
        'of the email attachment'|| crlf ||
        crlf ||
        '-------SECBOUND'|| crlf ||
        'Content-Type: text/plain;'|| crlf ||
        ' name="ap_inv_supplier_cc10.txt"'|| crlf ||
        'Content-Transfer_Encoding: 8bit'|| crlf ||
        'Content-Disposition: attachment;'|| crlf ||
        ' filename="ap_inv_supplier_cc10.txt"'|| crlf ||
        crlf ||
        'TXT,file,attachment'|| crlf ||     -- Content of attachment  (THIS IS MY PROBLEM!  I NEED TO BE ABLE TO ATTACH AN EXISTING FILE, NOT CREATE A NEW ONE)
        crlf ||
        '-------SECBOUND--'               -- End MIME mail
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /

    First, you must create a directory object
    create directory ORALOAD as '/home/ldcgroup/ldccbc/'
    /Study the Prerequisites in the link I posted above, or else you will not be able to read/write files from the above directory object
    "fname" relates to the file name that you read from.
    In the code below, it is also the name of the file that you are attaching.
    Although they can be different!
    l_Output is the contents of the file.
    declare
    vInHandle  utl_file.file_type;
    flen       number;
    bsize      number;
    ex         boolean;
    l_Output   raw(32767);
    fname      varchar2(30) := 'ap_inv_supplier_cc10.txt';
    vSender    varchar2(30) := '[email protected]';
    vRecip     varchar2(30) := '[email protected]';
    vSubj      varchar2(50) := 'Weekly Invoice Report';
    vAttach    varchar2(50) := 'ap_inv_supplier_cc10.txt';
    vMType     varchar2(30) := 'text/plain; charset=us-ascii';
    begin
      utl_file.fgetattr('ORALOAD', fname, ex, flen, bsize);
      vInHandle := utl_file.fopen('ORALOAD', fname, 'R');
      utl_file.get_raw (vInHandle, l_Output);
      utl_file.fclose(vInHandle);
      utl_mail.send_attach_raw(sender       => vSender
                              ,recipients   => vRecip
                              ,subject      => vsubj
                              ,attachment   => l_Output
                              ,att_inline   => false
                              ,att_filename => fname);
    end;
    /

  • I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to sen

    I have Windows 7, Microsoft Outlook and PSE 13. I have used the "Share photos as embedded images" feature frequently, but today when I went to use it, it wasn't there, only the option to send email with files attached. How do I get back the ability to send emails with photos embedded. I like adding the frames and backgrounds and I think it's easier for recipients to look at the photos. Thanks for any suggestions of things to try.
    Gail

    I had a similar problem in that my wife's iphone 5 could not send pics with imessage.  Had to set the settings to default to SMS or whatever.  After laboring many hours on the web I coincidentally was on the phone with the internet people to question my internet speed.  They changed the router channel, which is something that I am capable of doing myself.  After that, the pics go over imessage.  My own Iphone didn't have the problem.  We are both latest IOS 7.0.6.

  • Proxy to SOAP with Payload + Stripped Payload as ZIP

    Hi Gurus
    I have a requirement from Proxy message to Web Service call where i need partial payload to be zipped and send
    I am looking at blog below, which will help to zip the payload for any message.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50ce0433-4309-2b10-4bb4-d421e78463f7?QuickLink=index&overridelayout=true
    Please correct me if my approach is could work or suggest me any easy or possible ways
    Source Structure
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>some binary data goes here</ZipPayload>
    </Root>
    Target
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>Filename.zip</ZipPayload>
    </Root>
    The out still needs to have the payload, part of it will be zipped as an attachment to the soap receiver adapter and mentioned zip file name in the 1st payload
    Straight interface mapping with 2 Message Mappings.
    1. Map the source to target and generate dynamic file name and assign into ZipPayload field
    2. Use the the method from the link above on zipping the file.
    Will this work sending payload with attachment via web service? Please advice
    I appreciate your input in advance

    Sender is not an option, because of lack of skills
    XI MM, we have two maps because, source payload will be split into two sets
    1 Partial Header Payload
    2. Details Payload will be zipped and generate dynamic zip file name and attach to the Payload 1.
    The output should look like in the earlier example
    Payload
    <Root>
    <Elemtn1>Element</Element1>
    <Element2>Element2<Element2>
    <ZipPayload>Filename.zip</ZipPayload>
    </Root>
    +
    Zip File
    Payload + Zip file as an attachment when it calls the web service.
    I am yet to do the POC, meanwhile i am checking here to see if it is feasible option.
    Btw, can any one can compile the java code and attach the class file here for the following link please. Appreciated in advance. I have no java experience in first place and it will be a tough thing to do from my side
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50ce0433-4309-2b10-4bb4-d421e78463f7?QuickLink=index&overridelayout=true

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

  • Text messages with animated .gif files attachment

     I recieved a text the other day with an animated gif file attached. I believe it was sent as a zip file. Anyway I tried to open it and all I got was a gray screen with an icon . No animation.. The second one I recieved was from a buddy. I watched and listened to it on his Droid 1. I had him send it to my phone text came through fine when I went to load and play the gif file it .had sound but no animation, just the gray screen again. I know the attachment is a zip file as I sent it to my email and opened it on my computer. Any thoughts maybe there's a setting I'm not finding? I'm using whatver text mesage program thats standard on the DX.
    Thanks
    MTY55.

    Sounds like the issue you are having is that the files are zipped, MMS should be zipped because it has to access the files to display it.. I send and recieve anifated gif files and they play fine but also keep in mind that for some reason the stock email client does not play all files at same time, if there is a audio and photo, it will play audio and then the photo..

  • Error in using XI-SOAP adapter, but no error  with SAP-BC

    Hi,
    I am working on RFC->XI->Webmethod (.asp) scenatio.
    I am using SOAP adapter.
    Whin I am not using "Do not use SOAP Envelop".
    I am getting "com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML" Error in SXMB_MONI.
    But when I am using "Do not use SOAP Envelop" then I am not getting any error. in SXMB_MONI status showing Successfully Processed. But the responce i am getting is "You are not authorized to view this page  // HTTP 401.1 - Unauthorized: Logon Failed"
    But same web-service is working fine while connected with SAP-BC.
    Please Help why scenario is working with BC, but not with XI.
    Thanks & Regards

    Hi Bhavesh,
    Thanks for reply.
    I am getting all success in message monitoring, but still web-services sying they are not getting any message.
    I am attaching all 4 logs for one synchronous communication of message monitoring.
    I am not able to understand where message going and why XI showing success every where.
    ********1st(Sent Messages)
    Success SOAP: response message leaving the adapter
    Success Application attempting to send an XI message asynchronously using connection AFW.
    Success Trying to put the message into the send queue.
    Success The response message for message cf4fd921-4a74-11db-9312-001279933263(INBOUND) was successfully transmitted to the calling application.
    Success The message status set to DLVD.
    Success The application sent the message asynchronously using connection AFW. Returning to application.
    ********2nd (Sent Messages)
    Success RFC adapter received sRFC for Z_PA_SAP_TO_Webservice from D02/230. Attempting to send message synchronously
    Success Application attempting to send an XI message synchronously using connection AFW.
    Success Trying to put the message into the call queue.
    Success Message successfully put into the queue.
    Success The message was successfully retrieved from the call queue.
    Success The message status set to DLNG.
    Success The message was successfully transmitted to endpoint http://XYZ.com:8000/sap/xi/engine?type=entry using connection AFW.
    Success The application sent the message synchronously using connection AFW. Returning to application.
    Success The message status set to DLVD
    **********3rd (Received Messages)
    Success Using connection AFW. Trying to put the message into the receive queue.
    Success The XI response message for message d0372be1-4a74-11db-91d7-001279933263(INBOUND) was successfully returned to the calling application.
    Success The message status set to DLVD.
    **********4th (Received Messages)
    Success The message was successfully received by the messaging system. Profile: XI URL: http://XYZ.com:50000/MessagingSystem/receive/AFW/XI
    Success Using connection AFW. Trying to put the message into the request queue.
    Success Message successfully put into the queue.
    Success The message was successfully retrieved from the request queue.
    Success The message status set to DLNG.
    Success Delivering to channel: IF_O_502_WebserviceBusService_SOAP_In_02
    Success SOAP: request message entering the adapter
    Success SOAP: completed the processing
    Success SOAP: response message received d0372be1-4a74-11db-91d7-001279933263
    Success The message status set to DLVD.
    Success The message was successfully delivered to the application using connection AFW.

Maybe you are looking for

  • When I downloaded the new Mavericks system, all of the many RSS feeds I had in my mail app deleted. How do I get these back?

    When I downloaded the new Mavericks system, all of the many RSS feeds I had in my mail app deleted. How do I get these back?

  • File system layout & cylinders

    I just did a fresh install of Solaris 9 8/03 on an Ultra Enterprise 450. When it came time to partition the disk, I chose the custom option. I then input the size of each file system for the the correct FS. Now when I look at the disk using the forma

  • Java script rollover not happening

    Hi the page is this http://www.nilreb.com/luke.html I have copied html code from fireworks. If you look in the code you can see that the top left is meant to be changing on rollover. Any help? thanks

  • QoS on ACE Module

    Hello, Does anyone know if it is possible to apply a 6500 QoS service-policy to a ACE module interface? I would like to leverage CBQOS to apply policing to traffic entering/leaving the ACE module. Thanks! Lee

  • Close button at the right corner

    Hi friends , i would like to know if there is any function key or function code is available for the close button. at the right corner. if u know please let me know.. regards, diana.