Rename SOAP attachments on Receiver side

Hello Experts
I have a synchronous scenario where File  <-> PI <--> SOAP, where I try to retrieve attachments from target system and create a file.
However the name in the attachments received from target system are not being retained. I used the code snippet from blog: Retaining SOAP Adapter Attachment Names in my response mapping (Sys2 -> Sys1) and it doesn't seem to help. Any pointers?
Thanks
Jaya

Hi Jaya - Never tried with sync scenarios but
I hope you handled the content type as explained in the blog..
1) Code for textual attachments e.g., XML, flat etc.. with required encoding e.g., UTF-8
contentType = contentType + ";charset = \"UTF-8\";"+ "name=\"" + attachmentID + "\"";
2) Code for binary attachments e.g., pdf's, images etc..:
contentType = contentType + ";"+ "name=\"" + attachmentID + "\"";
and "Read Attachments" is checked the operation mapping...

Similar Messages

  • Amplitude is not changing on the receiver side

    I am trying to transmit square wave using USRP 2920. If I change the amplitude of square wave in Tx file from 1 to lets say 100. The Tx waveform shows that it is changed but on the receiver side there is no change in the amplitude. Can any body look at my files and guide me why I am not able to see increase in amplitude on Rx file when I increase the amplitude of Square wave on Tx file
    Note: I am generating a randon number between 0 to 1. If random no. is greater than 0.5 then the amplitude is 1 or higher but if the random no. is less than 0.5 amplitude will be zero.
    Thanks 
    JK
    Attachments:
    TX.vi ‏23 KB
    RX.vi ‏34 KB

    Your not going to get a clean squarewave back on the receive side. The USRP uses a local oscillator (LO) so anything it reads will be interpreted as sinusoidal in nature. This is evedent in the screen shots in the attached .zip folder. 
    To address your voltage question, assuming your antenna is terminated with a characteristic impedance of 50 Ohms (Zo) and the max power of 100 mW, Power = (approximately) Voltage^2 / Zo
    Therefore Voltage = ( Power * Zo ) ^ (1/2) = 2.2 Volts approximately. 
    What is your overall application? Why are you concerned about the voltage? What are you testing?
    Brad S.
    Application Engineering
    National Instruments
    Attachments:
    USRP.zip ‏216 KB

  • Error proxy call not permitted on sender side and receiver side

    </SAP:ReliableMessaging>
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">PROXY_NOT_ALLOWED_ON_IS</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Proxy calls are not permitted on sender or receiver side on the IS (client)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    - <SAP:HopList xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    - <SAP:Hop timeStamp="2010-05-31T05:11:40Z" wasRead="false">
      <SAP:Engine type="AE">af.mid.sdxid008</SAP:Engine>
      <SAP:Adapter namespace="http://sap.com/xi/XI/System">XIRA</SAP:Adapter>
      <SAP:MessageId>682F03D4-27A2-4295-0DC2-F296CFE1CA49</SAP:MessageId>
      <SAP:Info />
      </SAP:Hop>
    iN THE RESPONSE SIDE
    <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Proxy calls are not permitted on sender or receiver side on the IS (client)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    + <SAP:HopList xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    - <SAP:Hop timeStamp="2010-05-31T05:11:40Z" wasRead="false">
      <SAP:Engine type="AE">af.mid.sdxid008</SAP:Engine>
      <SAP:Adapter namespace="http://sap.com/xi/XI/System">XIRA</SAP:Adapter>
      <SAP:MessageId>682F03D4-27A2-4295-0DC2-F296CFE1CA49</SAP:MessageId>
      <SAP:Info />
      </SAP:Hop>
    - <SAP:Hop timeStamp="2010-05-31T05:11:42Z" wasRead="false">
      <SAP:Engine type="BS">INTEGRATION_SERVER_MID</SAP:Engine>
      <SAP:Adapter namespace="http://sap.com/xi/XI/System">XI</SAP:Adapter>
      <SAP:MessageId>682F03D4-27A2-4295-0DC2-F296CFE1CA49</SAP:MessageId>
      <SAP:Info>3.0</SAP:Info>
      </SAP:Hop>
      </SAP:HopList>
    - <SAP:RunTime xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

    you are sending messages to an integration server.
    what is you scenario?
    Not that you cannot make a proxy call to PI
    you can only make calls to systems or client that are configured as application system in SXM|B_ADM -> Integration engine configuration
    More: /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

  • How to pass SOAP Attachments with JAX-RPC Web Service

    I'm confused...
    This sample shows how to send/receive SOAP attachments by using the JAX-RPC Handler mechanism. Can somebody confirm if this is the preferred way to do this. I've seen an example wich does something like:
      public interface AttachmentService extends Remote {
        public String storeDocumentService(javax.activation.DataHandler dh, String filename) throws RemoteException;
      }and then uses JAX-RPC utilities to create wsdl, stubs and stuff. Does this have the same result, as what the OTN example shows (from an architecture perspective?
    Thx,
    Jan.

    Well, how an attachment is processed depends on your application logic...if your application logic requires to processing attachments and verify it before processing the SOAP message, handlers could be better option.
    If you need to process the attachment while processing the SOAP message, you can do it in the service implementation class.
    In both the cases you need to get access to SOAPMessage object and from there get the attachments with getAttachments method.

  • Retriving .doc and .rtf files in soap attachments

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

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

  • Not getting Service interface in receiver side

    Hi,
    I am working on a newly configured PI server.
    Here, I am working on a synchronous SOAP to RFC scenario from third party to ISU.
    From the Display WSDL option of ID I have created a wsdl file and testing the scenario by importing wsdl file into SOAP UI. When I am sending some request from SOAP UI , I am getting proper response message ; that's mean interface is working fine and properly hitting the RFC in ISU.
    I can see the message in SXMB_MONI of my PI server . But I am not getting the message in SXMB_MONI of ISU server . Even in SXMB_MONI of ISU I am not getting the inbound service interface also .
    What can be the possible reason . As I am working on a totally new server should I do any configuration in the server to get the SI in receiver side.
    Please help.
    Thanks in advance.

    Hi,
    Please check if Sync logging is enable in ISU. refer the below blog
    XI: I cannot see some of my messages in the SXMB_MONI
    regareds,
    Harish

  • Why do excel attachments get received by ipads as dat files yest excel file by mac pc's?

    Question should have read:  Why do excel attachments get received by ipads as dat files but received as excel files by mac pc's?

    Are you using Outlook as your email client?
    The problem is with Outlook and on the sending side of things. Have the sender change their Outlook text settings from RTF (rich text) to plain text and the attachment should arrive uncorrupted.

  • Append the data in file at receiver side

    Hi All,
    I want dump the data frm SAP tables. the data is hughe so we are sending the data in slots from ECC like 50K recoerds at a time and after that to collect that i using the append parameter at file receiver side and records are getting appended in file only that is correct 
    but my one doubt is
    let say monday the records get append into file at receiver side and on tuesday again the records will get appended in same file....it will be problem for this i used create parameter with overrite my question if i am using create then we can not use append ........
    please suggest...........
    Regards

    Hi gangadhar,
                             Append will work like this..
    if there is no file ..create the file and if file already exists then appends the data to the existing file..
    in your case when you create the file with day i.e file_day ..first time when you send 50K records file will get created..
    if you send another 50k in the same then will get appended to the same...
    in case if you send the another 50K set another day..then a new file will get create as there is no file available with taht file name
    i.e filename_nextday...
    Hope this clears all your queries
    HTH
    Rajesh

  • BPM:  System_Error" SOAP fault message received

    Hi,
    We upgraded SAP system from 4.7 to ERP2004 on 09/17/05.
    We have XI-3.0 version from last 9 months and this BPM was working good so far. We have not changed anything in it except we upgraded the SAP system.
    We are using ABAP proxy from SAP to send "userid"
    message to XI-BPM and then it would make a Synchonous call to SAP system to get roles of those "usrid".
    In the first step when it is sending data to XI an exception is raised and in the second step when it tries to make synchronous call to SAP we are getting error:
    <Trace level="3" type="T">Deserializing message object...</Trace>
      <Trace level="3" type="System_Error">SOAP fault message received</Trac
      <Trace level="3" type="System_Error">SOAP fault code: Client</Trace>
      <Trace level="3" type="System_Error">SOAP fault string: Error during c
    I noticed that the XML name tag looks different now
    Before upgrade when message was successful.
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_ECA_USRID xmlns:ns1="http://bcm.edu/common"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <USRID>CLARKSON</USRID>
      <USRID>2_MA140016</USRID>
       </ns1:MT_ECA_USRID>
    After upgrade when message is failed
    <?xml version="1.0" encoding="utf-8" ?>
    - <nr1:MT_ECA_USRID xmlns:nr1="http://bcm.edu/common">
      <USRID>AABULIMI</USRID>
      <USRID>AB147899</USRID>
      <USRID>ACHALL</USRID>
       </nr1:MT_ECA_USRID>
    You would notice that
    " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    missing after upgrade.
    I would appreciate if anyone could help me.
    Mrudula

    Hi,
    Can you paste the full error message. Also take a look at the default trace log in Visual Admin. Set the logging for soap to debug.
    Naveen

  • Problem with Stored Procedure exection in Sender and Receiver side of JDBC

    Hi All,
    I am facing problem while executing Stored Procedures using sender and receiver sides of JDBC adapter.
    Here is my SP in Oracle DB :
    PROCEDURE EMP                           
    ( ID IN VARCHAR2,NAME IN VARCHAR2,PROCESSED IN VARCHAR2  ) AS                                                          
    BEGIN                                                         
       INSERT INTO EMPLOYEE VALUES (ID, NAME, PROCESSED);COMMIT;END EMP;
    Now I want to execute this SP using sender JDBC channel and receiver JDBC channel.
    Can anyone please help me executing this SP?
    Regards,
    Soorya

    Hi Soorya,
    The receiver Data type should be like this:
    <StatementName>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName >
      </StatementName>
    Check the link http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
    Which DB  are you using?? The sender structure will be like
    <resultset>
    <row>
    <field1></field1>
    <field2></field2>
    <field3></ field3>
    </row>
    </resultset>
    Search SDN you will get lot of examples
    Regards
    Suraj

  • Mandatory fields in receiver side

    Hi Experts,
    Is there any easy way to find out, what are the mandatory fields(receiver side) we have to map during mapping?
    Regards
    Sara

    Basic question
    Sender side :
    1. Sender1_Root
    2. Sender1_Child1
    3. Sender2_Root
    4. Sender2_Child1
    Receiver Side:
    1. Receiver_Root
    2. Receiver_Child1
    3. Receiver_Child2
    1. Sender1_Child1 is mapped to Receiver_Child1
    2. Sender2_Child1 is mapped to Receiver_Child2
    In this case, Do we need to map the Sender1_Root and Sender2_Root to Receiver_Root?
    Regards
    Sara

  • Problem in Receiver side File Adapter using FTPS mode

    Hello,
    Here I am facing some problem in receiver side while using FTPS mode in the channel configuration.
    The error message which i could see in the audit log is,
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: java.lang.NullPointerException
    Can anyone help me out in solving this issue ASAP?
    I am using Per file transfer mode ni the reciever channel.
    Thanks in advance,
    Yours
    Soorya

    HI Surya,
    First check wether server started or not and then check you are connecting to FTP server by
    go to run -> cmd and write ping and ipaddress which is used and see whether u r getting reponse from teh FTP server.
    Try to login to the ftp server which you have mentioned in CC using the user name and pwd, to chk whether you have the permissions to login to the server.
    Also the check whether the folder you are trying to access is having permission for delete/read/write.
    Restart the FTP server and try it again.
    Regards
    Sridhar Goli

  • File access parameter in file adapter at receiver side

    Hi Experts,
    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction    mode = add time stamp and put file directly .but it is showing time in file name????????
    2. i want my file name as  TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    Regards

    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
    The addtime stamp will add timestamp as the last part of the filename before the extension.
    2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
    Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
    Search SDN for dynamic file naming.

  • FCC in receiver side in idoc to file scenario

    Hi all,
               I am doing an idoc to file scenario using FCC .I am using FCC in receiver side ,but i am getting my output file in only one line while i want structre to be seprated by new line.for more information i am giving muy file structre.
    Record
        header(1to1)
        data    (0 to unbounded)
        footer  (1to 1)          header, data, footer are three structre which contain various fields.I have to use fieldFixedLengths as filed separator. I am also using endseperator as 'nl' but its not coming in new line.Please share ur views on this issue.
    Regards
    Neha

    hi neha,
    In your scenario
    Recordset Structure  header,data,footer
    header.fieldFixedLengths    =  1,2,3,  whatever it is 
    data.fieldFixedLengths      =  similar to header
    footer.fieldFixedLengths    =  similar to header
    header.endSeparator  = 'nl'
    data.endSeparator  = 'nl'
    footer.endSeparator  = 'nl'
    I guess you dont have to do any thing else.
    Regards
    Pushkar
    Message was edited by:
            Pushkar Anand

  • Problem with file contnet conversion in receiver side.

    Hi All,
    I have a source strucuture as below.
    Header-1.1
    Item..1..unbounded.
    footer..1..1,
    As i am using PI 7.0 , can you any one tell me ..how do i mention item segment is occuring multiple times in the reciever content conversion.If only one segment is comming then the scenario is working but if the item segment is comming with multiple times, it is throwing error.
    Can any one let me know how do we achieve this.
    Regards,
    Chandu.

    hi,
    There is no need of giving * in receiver side FCC
    give the structure as
    header,item,footer
    try with this one,it will work....
    and give corresponding
    header.feildSeparator
    header.fieldNames
    item.feildSeparator
    item.fieldNames
    footer.feildSeparator
    footer.fieldNames
    default endSeparator is 'nl'
    if fixed length give fixed lengths

Maybe you are looking for

  • How do i use the recovery disks and backup and restore my laptop in a new HDD without losing OS lic?

    I am running a HP-DV6 6090ee laptop with windows 7 Home Premium 64bit OS. This problem started from last evening. I am getting a "Smart Hard disc error" error message before boot and ater booting windows saying that my HDD is having problems and i ne

  • Compilation Feature in iTunes 10

    How do I use the compilation feature in iTunes 10? I have compilation albums and I dont want random artists clogging up my library. Is there a way I can group them? Hat

  • Stop installing Tiger before the Welcome screen appears

    I would like to give my Mac away as a gift to a newbie and consider it nice to give him a Mac that feels like being delivered from the factory. This means: I would like him to see the welcome screen first (the one where all the Welcomes in hundred di

  • Adobe Apps Quit when printing

    I am running 16 24' Imac core duo computers in my lab. Printing is managed by my G5 Server. All apple software is updated We are currently using Adobe CS, (waiting for CS3). Adobe products with exception of acrobat quit when printing. In my Imac G5 l

  • JTable with JToolBar inegrated

    Hello. My requirement: A swing component (JPanel, JTable...) consisting of a table and a tool bar with buttons for inserting/removing rows in the table. This component must be visually configurable in NetBeans vía 'Table contents...' dialog. If I ext