Mapping of Header Value

Hi,
i have following source structure.
<item>
<header>
<name>test</name>
</header>
<pos>
<id>1</id>
</pos>
<pos>
<id>2</id>
</pos>
<item>
<item>...
and need this target structure.
<item>
<id>1<id>
<name>test</name>
<item>
<item>
<id>2<id>
<name>test</name>
<item>
so i need the same value from header for every pos of one item.
how can i handle that?
regards,
robin

well this is only a simple example.
the real structure ist much more complicate.
I cant use fix values.
I need the values from source field. From the position tag. And some from the header tag. But one item can have more positions. So i need to map values from header for every position.
thats my problem.
regards,
robin

Similar Messages

  • Call HEADER value into ITEM level in mapping

    HI,
    my structure is as below:
    H
    I
    I
    I
    P
    H
    I
    I
    P
    P
    H
    I
    I
    I
    I
    I
    P
    I have created a sequence in DB and retriving the value from DB using lookup for the header level(H) for feild ID.by using the code:
       //write your code here
       //write your code here
    String Query = " ";
    Channel channel = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    try{
                    //container.getTrace().addWarning("Obtaining channel");
                    channel = LookupService.getChannel( businessSystem, communicationChannel);
                    //container.getTrace().addWarning("Channel OK");
                    //Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
                    accessor = LookupService.getDataBaseAccessor(channel);
                    //container.getTrace().addWarning("Accessor OK");
                    //Execute Query and get the values in resultset
                    resultSet = accessor.execute(" SELECT ID.NEXTVAL FROM DUAL");
                    //container.getTrace().addWarning("SELECT OK");
                    //String[] cols = resultSet.getMetaData().getColumnNames();
                    //for (int i=0; i<cols.length; i++){
                    //            container.getTrace().addWarning("Column name: " + cols<i>);
                    for(Iterator rows = resultSet.getRows();rows.hasNext();){
                                    //container.getTrace().addWarning("Result has rows");
                                    Map rowMap = (Map)rows.next();
                                    //container.getTrace().addWarning("Trying to get NEXTVAL");
                                    //Object obj = rowMap.get("NEXTVAL");
                                    //container.getTrace().addWarning("Data received " + obj);
                                    //return obj.toString();
                                    return rowMap.get("NEXTVAL").toString();
                                    //return ((String)rowMap.get("NEXTVAL"));
                    //container.getTrace().addWarning("Result has no rows");
                    throw new RuntimeException("Cannot obtain next service repair ID");
                    //return "-1";
    } catch(Exception ex){
                    container.getTrace().addWarning("Exception " + ex.getMessage());
                    throw new RuntimeException("Cannot obtain next service repair ID", ex);
                    //return "-1";
    finally {
                    try {
                                    if (accessor!=null) accessor.close();
                    catch(Exception e){
                                    container.getTrace().addWarning("Cannot close DataBaseAccessor for service " + businessSystem +
                                                                                    " and comm channel " + communicationChannel + " in getNextID user defined funcion");
    now my requirement is i have my to call the same value of ID feild into ID of I.to represent perticular I is related to so and so Header(H).
    Please suggest me how i can call the value to which is passing to ID(targetfeild) of H and map to ID(targetfeild) of I.
    please provide me UDF code....
    thanks in advance,
    Naveen.

    Use standard function UseOneAsMany (found under NodeFunctions) to populate the Header-value for each of the corresponding Item-segments.
    Input 1 - your header-fields as resulted from DB-lookup
    Input 2 - Item-segment
    Input 3 - Item-segment
    Make sure to set the context for Input 1 so that there are equal number of contexts in Input 1 as 2 & 3.
    -Kenneth

  • SMP 3.0: how to handle header values in the SOAP WS using Integration Gateway

    Hi Experts,
    We have a requirement from our current customer where they are providing us a SOAP WS.For one of the method we are passing “username” & “password” as input parameters and getting one security key (some unique number) in the response. We are able to do OData modeling for the same method. So far, it is fine.
    For other method, we have to pass that ”security key” in header along with some other parameters in the body section. While doing the request mapping for this method, we don’t see any option for this key parameter apart from those parameters (in that body section).
    We found one publicly available WSDL to reproduce the same scenario:
    e.g http://api.geosvc.com/services/soap?wsdl . To access its one of the method/operation GetPlace,We have to pass APiKey and Cursor value in the header section.
    <wsdl:message name="GetPlaceRq_Headers">
    <wsdl:part name="ApiKey" element="tns:ApiKey"/>
    <wsdl:part name="Cursor" element="tns:Cursor"/>
    To get APiKey, we have to register first. http://www.geosvc.com/register , once its done, you will get one APiKey as below:
    The same API key has to pass to access “GetPlace” method. So we tried it in SOAP UI to understand how exactly it should work:
    As you can see below, for the method “GetPlace”, we are passing values as in:
    Header Value
    Cursor
    blank
    ApiKey
    df7f8cc90e3345b4980cf6631f33a32d
    Body
    Country
    US
    Place
    HOLLYWOOD,CA
    Also got the response.
    When we do modeling (more precisely request mapping as below) for the same method we don’t see any Header related parameters. We can see only parameters which are available in the BODY section.
    We thought if we can get APIKey parameter in the body sections only, then it would be easy to map with. Right?
    What do you suggest how we should handle this kind of scenarios?
    CC: Mustafa Saglam, Jeff Gebo, Bjoern Woppmann
    Regards,
    JK

    Unfortunately the public example is a slightly different use case.  You have to register to get a static API key that is used in all calls.  That is something you would hard code into the headers.
    I think you are asking about a dynamic key they changes on each login.  It would be great if we had a public one that upon login returned a unique session key to be used in subsequent calls so we could better test and model accordingly.
    If you were using Agentry the answer would be yes you can do this.
    --Bill

  • Mapping at header level

    Hello All,
    I have implemented a logic for field MATNR at the header level in the message mapping. Logic is when the value is not coming for a field it throws a customized exception.And the same field has different logic in the mapping under header.
    As per my understanding the header level logic will be executed firsrt and if ever it is true then only rest of the mapping will be executed. Correct me If I am wrong here
    Thanks,
    Regards,
    Moorthy

    Hi Moorthy,
    The mapping works in a hierarchial manner. If the header mapping fails or is not true, the corresponding values of sub nodes will also not be executed/populated for that particular context. (Context is extremely important in this regards).
    Think it as a nested if stmnt. Ex:
    if() <- check condition for header
    if() <- check condition for first node after header - doesnt get here when the above if stmnt is false
    if () { <- check condition for second node after header and so on
    Hope this clarfies. Let me know if any doubts.
    Cheers,
    Souvik
    Edited by: Souvik Chatterjee on Apr 14, 2011 3:59 PM

  • Host header-value matching where a port is used.

    Hi all,
    Would anyone be able to advise on the match value where the host header includes a port, e.g. www.mysite.com:9080. My question here goes to the collon preceding the port. Can this be done? If so, how?
    If not, what is other option to match on, wildcard? The scenarion is same site being accessed, so www.mysite.com remains unchanged, but on varoius ports, around 20 differnt ports. Issue is port is part of host header.
    Any guidance or advice would be appreciated.
    Thank you.
    Paul.

    Hi all,
    Would something like this below work? Trying to catch all the various ports that may be utilised (9080 -9099).
    class-map type http loadbalance match-all L7-APP1
    match http Host header-value www[.]mysite[.]com[:]90*
    Thanks
    Paul

  • Header value in data table can be fetched from managed bean.

    hi
    My requirement is to display a report in which column headers are also retrieved from data base, it cannot be hardcoded.
    instead of My Column it should come from managed bean
    <f:facet name="header">
    <h:outputText value="My Column"/>
    </f:facet>
    I am not able to fetch the header value from the managed bean.
    I tried
    <f:facet name="header">
    <h:outputText value="#{character.name}"/>
    </f:facet>
    but failed.
    Is there any way i can fetch these values at run time.

    Is that bean the main bean or the row object? It should be the main bean. There is only one column per table, its value is not to be derived from the row object.

  • Get Custom SOAP Header Value in SOA Suite 11.1.1.6 using BPEL 1.1

    Hi Experts,
    We are using SOA Suite 11.1.1.6 and in one of the projects we have requirement to retrieve custom SOAP header value.
    This is enhancement to existing process which is developed using BPEL 1.1 and deployed to Production. So we cannot convert this now to BPEL 2.0
    We suggested to use custom XML element in Header the definition of which will be defined in custom XSD and stored in common location. However the 3rd party who are invoking this service will not be able to do any customization in their process to pass custom XML header.
    Please can you help me in providing any approach through which we can retrieve custom Header value from SOAP header using BPEL 1.1
    I have read some blogs for retrieving the custom XML header but they are using BPEL 2.0. I would like achieve this functionality using BPEL 1.1
    Appreciate your inputs.
    Thanks in Advance - RK

    Hello RK,
    Have you've tried to put the bpex:outputHeaderVariable on the invoke activity of the invoked service.
    <invoke name="Invoke"
                bpelx:outputHeaderVariable="HeaderVariable"/>
    Where the "HeaderVariable" reflects the XSD Datastructure of the received header.
    This is also specified here in section 6.19.1 How to Receive SOAP Headers in BPEL
    Please note that the exact header must be specified in the WSDL of the invoked service.
    Also note that in case of a soap fault. No header will be returned from the invoked service but only a /soap/body/fault part.
    Good luck!
    Melvin

  • How to show header value in each page same as Page field value.

    Hi there
    It would be very helpful if anyone could tell us how to set header value based on the page field.
    To make it more clear.. i have a field in my Rtf (which is basically a group by) so in each page it'll differ.. My Header should reflect the same as field value.
    what my understanding is header wont change for each page. but ,my requirement is something like i have to show the header which is same as one of my filed value..
    for eg:
    HEADER: ABC page-1
    Field - ABC
    HEADER:XYZ page-2
    Field - XYZ
    Regards - Vijay
    Edited by: Vijay Santhanam on 23-Oct-2008 3:51 PM

    Hi Haiye ,
    The Pointer you gave would keep Header ABC through out all the pages in report right, actually i had tried this and got same header for all pages,
    but what i need is my first page Header should be based on one of the field of Page 1, second pge Header again based on the same field, but the value may differ... (coz the page field is group by ).
    Would appreciate your help on this issue!!
    Regards - Vijay

  • How to bring the Header value to the row ?

    Dear All,
    I am a starter in learning SDK. have developed a form having 2 tables a header and a row detailed one.
    Now i need to update a field in all the row with a header value when the header value is added. it should be like the SE name getting updated when the SE name is selected in header level in std doc.
    how to arrive it?
    kindly help me to achieve this.
    Thanks,
    Sam.

    Dear Gordon,
    May the customer enters a value to the header which they want it to be unique value for all the row detail.
    If there exists more than 50 rows they cant enter it for each and every row, for in case if the value needed to be changed for a particular row or for particular few rows they will change it manually to that row alone.
    I just want to achieve this scenario in my form.
    Do you know how to bring in ?
    As this is being a normal functionality in Std forms.
    Thank you...

  • How to map a missing value to a member?

    Hi all,
    Let say I have 3 dimensions in my data source file:
    Account, Entity, Product, Data
    A400, E100, P200, 10000
    A401, E110, P300, 20000
    A401, ,P400, 30000
    As you can see in the third record, Entity is missing. How can I map this to, let's say, No_Entity? In my Entity mapping table, Type: Like, I have tried using Null and Missing as the Rule Definition, but neither worked.
    Couple of clarifications: This is for an Essbase BSO cube. In my real case, the missing values are not Entity members, but 3 custom dimension members.
    Any ideas?
    We are on 11.1.2.2.
    Thanks,
    Mehmet

    You have a couple of options:
    1) Add a wilcard mapping to your entity maps which maps anything you have not explicitly mapped to NoEntity i.e. * --> NoEntity
    2) You cannot have an empty string as a source value so in your import format, associate an import script with the Entity dimension source field entry and check the length of the string of the source field as it comes in. If the length is 0 assign a value of NoEntity to be returned and map that source value explicitly inyour Entity map

  • Need of value mapping  and fixed values in (conversions)under graphical map

    hi.
    helo all.
    i just want to know what  is the need of value mapping  and fixed values in (conversions)under graphical mappping.
    can any body explain me with real time example .
    waiting for your response.
    bye.
    regards.
    seeta ram.

    Hi Seetha Ram,
       Value mapping:  Where we maintain a table of values which are mapped.
    based on the incoming value we can send the respective resultant value.
        for Eg: for language SAP maintains as EN  --> English  etc
    can u refer these
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Re: Value mapping table
    Thanks and Regards
    Harsha Vardhan.P
    **Reward points if found useful**

  • How to map the Resultset values to multiple tags on target strcture

    Hi All,
    We have an UDF ,whihc is returing Resultset . How do we map/extract the each element of resultset to diffrent fields on the target strcure in graphical mapping.
    Let me know,if any blog exist for same.
    Thanks for your support and advice.
    MK

    Hi,
    you should be having some condition based on which you will map your resultset values to different target fields.......so have that condition as an input to your UDF in graphical mapping.............then use this condition value in your UDF and output the data which should come on this condition in the resultset..........then in graphical mapping, map your target fields with this UDF and condition and output the UDF output to the target node.........
    Regards,
    Rajeev Gupta

  • How to see Header values are passed as a part of a Message in BPEL Invoke

    Hi,
    I have passed some session id in the header of a invoke message.
    In Audit trail I am not able to see those header values, its only showing the body of the request passed.
    Is there any way I can see passed Header values also ?
    Regards,
    En

    Refer the below URL for details about seeing the full SOAP message in 11g.
    http://www.albinsblog.com/2012/10/getting-soap-envelope-of.html#.UUrX7TceBBE
    Mark the posting appropriately as "helpful" or "correct answer", if your issue is solved.
    Regards
    Albin I
    [http://www.albinsblog.com/]

  • Customer Invoice Header Value Problem

    Hi Expert,
    I have configured Customer Invoice App and it is working fine. But in header value is coming Zero. I couldn't able to under stand what value is passing here, tried changing cost, Accounting value but still it is coming zero. I am attaching the screen shot.
    Any one please help me to get ride of this issue.
    Regards
    Niladri

    Hello Niladri ,
    I am also facing same issue .  Did you get any solution????
    Can any one please help ???
    Regards,
    Akshay

  • How to map single context value attribute to multiple value attributes?

    Hello,
    is there any way to map a single value attribute
    from view's context into several value attributes
    in controller's context?
    The business context of what I want to achieve
    is the following: I have a view which can be called
    in two modes: read only (RO) and read-write (RW).
    The input parameters to the view are the same for
    both modes, however when in RO mode, the view calls
    a different set of web services than when called
    in RW mode. Before calling each of the web services
    I need to populate their context value attributes
    with appropriate input values.
    I know I can do it in Java code, but is it possible
    to do it without any programming (doing it in the
    source code is prone to errors)?
    Any help highly appreciated.
    Greetings,
    Tomek.

    Hi Kishore,
    than you very much for your kind help.
    I have already created a value attribute of type
    boolean and mapped it into the read-only property
    of the UI elements. This however does not solve all
    of the problems... I will describe it with an
    example:
    Let's say the form I want to implement will be
    used to: create (read-write mode), update (read-
    write mode) or show (read-only mode) customer's
    data. The customer's data is complex (lots of
    data, including tree structures).
    The problem is that:
    - when the form is called in read-only mode,
      it should populate its fields with values
      provided by the getCustomerData web service,
    - when the form is called to create a new
      customer (in read-write) mode, it should
      not use the getCustomerData web service.
      Instead it should map the input values
      entered by the user into input parameters
      of the createNewCustomer web service,
    - when the form is called to update customer's
      data, it should first display values returned
      by the getCustomerData web service, and then
      it should map the modified values entered by
      the user into input parameters of the
      updateCustomer web service,
    In all the above cases I must map my view's
    context data to different controller's context
    elements. Doing it directly in the source code
    is not a nice solution. Is there any other
    way to achieve this? 
    Calling a form in different modes in not an
    unusual thing, so I was hoping that maybe
    there are any built-in mechanisms that would
    solve the obove problem...
    Greetings,
    Tomek.

Maybe you are looking for

  • BSI error message in US payroll log

    Hi, I have updated the configuration for a new US tax authority (Mount Lebanon).  When I run payroll for the employee that the change effects, I get the following BSI error message: "1044        Your request to use the additional tax code 9 for the M

  • Web Application Deployment Issue in SOA Domain

    I have a web application war file which when deployed in Weblogic 10.3.6 separately works fine. When I deploy the same in a SOA domain (_Weblogic 10.3.6 + SOA 11.1.1.6 + OSB 11.1.1.6_), it's throwing the below error. In both the cases I am targeting

  • Managing more than one Nano on single computer

    I own a nano and am thinking about getting my son one. I just want to make sure both Nano's can be managed on one computer without confusion about which songs go on what Nano, etc. Can someone help me out? Thanks!!

  • Can't remove the screen lock by PIN and can't use the screen to receive calls

    Hello, I have a brand new SONY Xperia , Model Number D5803, Android version 5.0.2. , Baseband version 8974-AAAAANAZQ-00063-42, Kernel version 8974-perf-g3f600d1. , Build number 23.2.A.1.62. I set a screen lock by PIN. However when I receive calls I c

  • Problem installing Oracle9i Database

    When i installed the software, it got through to almost 50%, but then the installer screen suddenly disappeared off the screen and my pc shut-down and restart automatically. I don't know what was the problem because there wasn't even an error message