How to pass JMS header Information to proxy field

Hi,
I am working with JMS to Proxy scenario (Synchronous).
I am getting one header field at sender JMS channel which need to be mapped with one of the Proxy field.
and similarly  when proxy returning one field value that need to be mapped with receiver channel header information.
could any one help me on how to achieve  this.
regards,
Navneet

Hi,
>>Now My Question is how can I get Dynamic Configuration Key
Like this
1. switch on ASMA in sender JMS communication channel
2 Assign this udf to target field
UDF code
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSMessageProperty9";
String valueOld = conf.get(key);
return valueOld;
3. Do a  end to end testing (message mapping test will;l throw error)
Regards
Suraj

Similar Messages

  • Re: Passing HTTP Header Information

    I am calling a web service ( using generated client stubs)
    Is it possible to share HTTP header information to this call ?
    Sample code is :
    SimpleTestSoap echoPort = SimpleTest_Impl().getSimpleTestSoap();
    String test = echoPort.xxxxMethos();
    How do I pass an array of cookies(from the request object ) to this call ?
    Thanks

    I am calling a web service ( using generated client stubs)
    Is it possible to share HTTP header information to this call ?
    Sample code is :
    SimpleTestSoap echoPort = SimpleTest_Impl().getSimpleTestSoap();
    String test = echoPort.xxxxMethos();
    How do I pass an array of cookies(from the request object ) to this call ?
    Thanks

  • How to set JMS Header Property without using DynamicConfiguration.

    Hi,
    My Scenario is: PDF File -->XI -->JMS
    I need to send the PDF file as it is to JMS receiver, which shouldn't be a problem. The problem is I need to set the same file name in the Receiver JMS header property.
    So to do this I am using DynamicConfiguration in message mapping but when File Adapter picks the PDF file (as it is) I get the run time mapping error which is quite obvious since message mapping expects the data in xml format.
    Do you have any idea if I can avoid the message mapping and set the Dynamic Configuration somewhere else (not sure if java mapping can help here) or if there is some Module available to set file name in JMS header.
    Note: PDF File name is dynamic.
    Thanks!

    I am on XI 3.0. I am not good in java.. can someone give an example?
    Update:-
    I have done some changes to my code and now it is working for me. Since I don't have much knowledge in Java (except writing UDFs )so don't know how good this coding is but defiantly this is my first step to learn Java APIs. Thanks to everyone for their comments & suggestions!!
    If any improvement in below code can be done please let me know.
    package com.sap.xi;
    import com.sap.aii.mapping.api.*;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.HashMap;
    import java.util.Map;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import org.xml.sax.helpers.DefaultHandler;
    public class JMSHeaderMapping extends DefaultHandler implements StreamTransformation{
       private Map param;
        public void setParameter(Map map)//to access message header data during runtime
            param = map;
            if(param == null)
            param = new HashMap();
        public void execute(InputStream in, OutputStream out)  //This method is used to run the mapping
        throws StreamTransformationException
                DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
                String MyFileName = dynamicconfiguration.get(key);
               DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS","DCJMSMessageProperty0");
            dynamicconfiguration.put(key1, MyFileName);
            byte[] inbyte = null;
            try {
        // convert InputStream into byte stream
              int bufsize = in.available();
              inbyte = new byte[bufsize];
              in.read(inbyte);
        // convert byte stream into OutputStream         
              out.write(inbyte);
            catch (Throwable t){
             t.printStackTrace();
    Edited by: Sarvesh Singh on May 9, 2011 8:47 PM

  • How to pass XML(Binary) to Server Proxy in ABAP report

    Hi,
    I would like to schedule server proxy in back ground mode using ABAP report. I already have the payload available in XSTRING(binary) saved in Z table. I know how to convert binary string to XML (using FMs -  SCMS_BINARY_TO_STRING).
    However, is there any way to pass binaryXML(XSTRING) to server proxy (without converting the paylolad to XML and use SAX/DOM parser to populate proxy input structure ) ?
    Not sure, if SET_XML(IF_WS_PAYLOAD) method can be used.
    Thank you,
    Mallik

    Hi Sarvesh,
    The pdf has details of ABAP mapping. The example given almost matches the xml file you want to be converted.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how to use abap-mapping in xi 3.0.pdf
    Just in case you have not seen this
    regards
    Vijaya

  • How to pull up header information in Foxfire 1.0

    Does anybody know how to pullup header information in Foxfire?

    Hi,
    I already mentioned if you have tomcat installed you would have it under webapps\examples. In case you are desparate here goes
    <html>
    <!--
      Copyright (c) 1999 The Apache Software Foundation.  All rights
      reserved.
    -->
    <body bgcolor="white">
    <h1> Request Information </h1>
    <font size="4">
    JSP Request Method: <%= request.getMethod() %>
    <br>
    Request URI: <%= request.getRequestURI() %>
    <br>
    Request Protocol: <%= request.getProtocol() %>
    <br>
    Servlet path: <%= request.getServletPath() %>
    <br>
    Path info: <% out.print(util.HTMLFilter.filter(request.getPathInfo())); %>
    <br>
    Query string: <% out.print(util.HTMLFilter.filter(request.getQueryString())); %>
    <br>
    Content length: <%= request.getContentLength() %>
    <br>
    Content type: <%= request.getContentType() %>
    <br>
    Server name: <%= request.getServerName() %>
    <br>
    Server port: <%= request.getServerPort() %>
    <br>
    Remote user: <%= request.getRemoteUser() %>
    <br>
    Remote address: <%= request.getRemoteAddr() %>
    <br>
    Remote host: <%= request.getRemoteHost() %>
    <br>
    Authorization scheme: <%= request.getAuthType() %>
    <br>
    Locale: <%= request.getLocale() %>
    <hr>
    The browser you are using is <% out.print(util.HTMLFilter.filter(request.getHeader("User-Agent"))); %>
    <hr>
    </font>
    </body>
    </html>Thanks
    Aviroop

  • How to pass database login information to a crystal report using c#?

    Hi,
    I need to pass database logon information to a crystal report dynamically using c#.  I am developing a windows application using c# .Net.
    I looked some of the articles however I am not able to figure out the mistake I have did.  Please find below the code I have written so far; It would be great if you could help me out in solving the issue.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.Data.OracleClient;
    using System.Configuration;
    using CrystalDecisions.Shared;
    using CrystalDecisions.CrystalReports.Engine;
    private void Frm_report_Load(object sender, EventArgs e)
                setReportParameters(); // method to pass parameters to the Crystal report
                crystalReportViewer1.ReportSource = new Upper_Lower();  // Upper_Lower is the Crystal report I have used in my project
               TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
               TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
               ConnectionInfo crConnectionInfo = new ConnectionInfo();
               Tables crTables;                            
                    crTables = new Upper_Lower().Database.Tables;
                    crConnectionInfo.ServerName = "oops";
                    crConnectionInfo.DatabaseName = "";
                    crConnectionInfo.UserID = "new";
                    crConnectionInfo.Password = "new123";
                    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in crTables)
                        crtableLogoninfo = CrTable.LogOnInfo;
                        crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                        CrTable.ApplyLogOnInfo(crtableLogoninfo);
    Thanks & Regards,
    Karthik.

    Hi,
    Try using this code ,
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("Report name"));
            rd.SetDatabaseLogon("User Name", "Password", "Server Name", "Database Name");
            CrystalReportViewer1.ReportSource = rd;
    [See Also.|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Hope this helps!!
    Sincerely,
    Nikhil Dharme

  • How to pass the Project Information to Receivables

    Currently we are using Projects as one of the segments in the Chart of Accounts.
    We are planning to use Oracle Quoting for raising the quotes. The quote will be for different jobs.
    Example : we are having quote q1 contains 2 jobs namely j1 and j2.
    The j1 is belong to Project P1 and j2 belong to Project P2. We want to pass Project P1 to Receivables using Order Managment, similar for Project P2 also.
    Basically we want to know how to pass the different Projects(in Project Accounting) to Receivables from Order Management.
    Can you Please give some thoughts about this, your feedback would be much appreciated.
    Regards
    Ganesan

    Ganesan,
    If your have created two different items for each job, you can maintain the project segment value in that item master's sales account and COGS account. ANd in the autoaccounting setup point this segment to take from item so that the line will take the segment value from item for the revenue account.
    This is rigid as you have may have to create as may items as the combination of job and project. If you have luxury to extend, you can open up a DFF against the line and for every job you can capture project number. This flows to OM hence into into Invoice interface. Use that in your autoinvoice preprocessor(extension) to populate the ra_interface_distributions_all with your revenue account.
    Assuming that you have no project implmented (that is why project is in COA).
    Thanks
    Nagamohan

  • removed_by_mod How can I get technical information of screen fields by FM?

    Hi, experts.
    I want to get technical information of screen fields by using any FM.
    Actually, I know the screen field name and I need which DATA ELEMENT IS ASSIGNED
    to the screen field.
    Thanks for your answers in advance.
    Edited by: Julius Bussche on Jul 15, 2008 10:52 PM
    I edited your subject title. Pkease read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

    Hi Kim,
    I hope you may use the standard function module RS_IMPORT_DYNPRO .
    This function module takes input as program name, screen no and gives the complete information abot that screen.
    The tables parameter FTAB holds the information regarding all controls in the screen.
    FTAB parameters :
    FNAM : control name
    FILL : control type incase of push button it would be P
    STXT : Label or text of the control
    RES1 : Function code ,
    You can check all other parameter , and debug that function module to know more .
    Regards,
    Naveen Veshala

  • How to pass username/password through WebService proxy client to E-BS.

    Hi
    We are using ADF Webservice proxy client to integrate E-Business suite with ADF. It asks for username/password to access details from E-BS. In the generated webservice XSD file, a method is available with 2 parameters.
    1) SOAP header( Contains Username, responsibility and 2 more fields)
    2) Class object(Nested Object)
    However i didn't find "*Password*" field anywhere in it. Then how can I pass "*Password*" along with username to invoke this method?
    When i checked SOAP, the password is defined like this
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>a
    Thanks
    Raja

    hi Dario
    Thank you for your post. It is really helpful. Now I got stuck with a doubt, in this piece of code
    final Binding binding = ((BindingProvider) servicePort).getBinding();
    List<Handler> handlerList = binding.getHandlerChain();
    if (handlerList == null)
    handlerList = new ArrayList<Handler>();
    They didn't mention properly about "*servicePort*". What object is this?
    I checked in Oracle document, even in that I was not clear with that piece of code.
    public class HandlerWS{ 
    @Resource WebServiceContext ctx;
    @WebMethod()
    public String getProperty(String propertyName) {  
    return (String) ctx.getMessageContext().get(propertyName);
    public class Main {
    public static void main(String[] args) {
    HandlerWS test;
    try {
    test = new HandlerWS(new URL(args[0] + "?WSDL"), new
    QName("http://example.org", "HandlerWS") );
    } catch (MalformedURLException murl) { throw new RuntimeException(murl); }
    HandlerWSPortType port = test.*getHandlerWSPortTypePort*();
    What is this HandlerWSPortType object???. Can you give me little more explanation about it?
    Thanks

  • How to pass Security Header from the Physical Service in ODSI

    We have to call a secured Web service using ODSI. We are trying to build a physical service in ODSI using a WSDL which has username token with password text policy inside it. The requests to that web service are bound by the security policy. But ODSI is not allowing us to create a Physical service usin a WSDL with a security policy in it. How can we then pass the security header from the ODSI physical service to the external web service.

    You would need to write a webservice handler for your physical data service to implement the security.
    http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/datasrvc/How%20To%20Create%20SOAP%20Handlers%20for%20Imported%20WSDLs.html

  • How to pass a header variable in jsp

    Hi ,
    I am using Headervariable login module(which takes user id form http header variable) for single sign on.
    I configured the login module stack. But to test i need a jsp from which i can pass the user id in http header.
    to test if i am able to set the user id in http header , i have written 2 jsps
    1. Header.jsp
    In this , i am setting the user id
    response.addHeader("UserId" ,"user1");
    and i am posting it to HeaderResult.jsp
    2.HeaderResult.jsp
    In this, i am tryng to rretrieve it By using
    request.getHeader("UserId");
    But i am not geeting any value.
    Can i set user defined header variables?if not, can i set the standard http header variabes,
    Please help me with the code.
    Thanks,
    Lakshmi

    Hi,
    check this thread
    http://help.sap.com/saphelp_nw04/helpdata/en/71/bcf3bf2ed7e142a5011b43c288f08c/content.htm
    HTTP Header parameters in iView.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/bc-jas/~form/handler
    May help you
    Regards,
    RK

  • How to pass PS header data to pdfmark?

    Hope this is the right place for this question:
    I currently use a bit of PostScript in Distiller's epilogue.ps file to add my name as "Author" to all my PDFs as they are distilled:
    [ /Author (My Name) /DOCINFO pdfmark
    So far, so good.
    Now what I want to do is automatically pass the data in the header of the PostScript file (such as %%Title, %% Creator) to the epilogue file.
    e.g. something like this:
    [ /Title TitleVariable /DOCINFO pdfmark
    so that a .ps file with a header line
    %%Title: My File.file
    becomes a PDF file with Title: My File.file
    Is this possible?
    Hope this makes sense.
    At the moment, the three "main" PDF metadata fields are always empty, and it's a pain having to fill them manually.

    I don't think that standard PostScript interpreters parse the comment lines automatically so that you would have populated variables/strings available to your PostScript program after the %%EndComments line. (maybe Dov Isaacs knows for sure).
    One alternative would be to add at the end of your epiloque a procedure that reads lines in from "currentfile" as strings until "%%EndComments" is found and parses the strings (looking for strings that start with "%%Creator:", "%%Title", etc. and defining your own variables based on the value portion of the strings.
    Redbook example of currentfile useage:
    /str 100 string def
    currentfile str readline
    here is a line of text
    pop /textline exch def
    You would have to be a little bit fancier than this but I hope the concept makes sense.

  • How to pass  soap header variable for invoking siebel service in BPEL

    Hi,
    I am invoking siebel service in soa composite. siebel service have header variables username/password and session type. I have created global variable (message type) in BPEL anddeclare same in messages port in siebel wsdl. after that I passed the username/password and session type as hard coded in assign activity. I have deployed and tested this but, I have an exception like javax.xml.ws.soap.SOAPFaultException: Error Code: 10944642 Error Message: Error: Inbound SOAP Message - Session Token is missing or invalid or has expired
    Can you please help on this..

    Hi,
    check this thread
    http://help.sap.com/saphelp_nw04/helpdata/en/71/bcf3bf2ed7e142a5011b43c288f08c/content.htm
    HTTP Header parameters in iView.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/bc-jas/~form/handler
    May help you
    Regards,
    RK

  • How to print the header information journal from FB03

    Hi
    I would like the FB03 to show the header e.g. Entered by/ Parked by on the screen, without clicking the header button.  So I can print the journal via printer with those information.
    Thank you
    Sirirak

    Hey,
    This also depends from the SAP release that you are using.
    Release undependent I suppose you have the following possibilities:
    - Use the line item extract report S_ALR_87012347.  Here at least you can see the entry date (this transaction does of course not work for parked documents.
    - Create a query on an infoset mit logical database BRM
    Best regards,
    Koen

  • How to pass column header as a parameter in Validation Expression (APEX4.0)

    Hello
    I created a new Page validation in APEX4.0 ( not 4.1 ).
    (1) Type : Function Returning error text
    (2) Validation Expression 1 :
    begin
    return validate_name ( p_c=> #COLUMN_HEADER# ,p_c_value=> to_date(:p26_LEAVE_FROM,'dd/mm/yyyy') );
    end;
    note: the validate_name is an oracle pl/sql procedure which takes two input parameters ( column header name and actual value ) and return a specific error message ( to that column ) or NULL.
    (3) In the Error Message section, I left Error Message blank ( as the app ignored the mssage but used the one returned from the above function)
    However, I chose "The Error display location" to be inline with field and notification" and Associated Item to be "p26_LEAVE_FROM".
    My question, it worked if I hard coded the actual column header "LEAVE FROM" , but it didn't work if I used the above #COLUMN_HEADER# in Validation Expression. Can I avoid hard coding as the column header might be changed one day. Is there a better way to deal with multiple column validations with different error message for each column ? It seems that I will have to create similar page valiation for each column to be validated.
    Thanks for your advice.
    Edited by: Susanna on 19/01/2012 17:45

    You want something like this:
    DECLARE
      lio_success  VARCHAR2( 2000 );
      li_id        NUMBER;
      li_dep_id    NUMBER;
      li_sel_id := NUMBER;
      li_date DATE;
      lo_date DATE;
      lio_return_message xyz_bpe_rec_fn.xyz_bpe_rec_col;
      l_ret xyz;
    BEGIN
      lio_success := 'some value';
      li_id := NULL;     -- or some number
      li_dep_id := NULL; -- or some number
      li_sel_id := NULL; -- or some number
      li_date DATE := sysdate;
      lio_return_message.col1 := somevalue;
      lio_return_message.col2 := somevalue;
      lio_return_message.coln := somevalue;
      l_ret := get_xyz( lio_success
                      , li_id
                      , li_dep_id
                      , li_sel_id
                      , li_date
                      , lo_date
                      , lio_return_message );
    END;
    /

Maybe you are looking for